diff options
author | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-03-13 22:03:22 -0700 |
---|---|---|
committer | Max Kanat-Alexander <mkanat@bugzilla.org> | 2011-03-13 22:03:22 -0700 |
commit | 8782cbb1c99e52d25a5157b0d3b794459f2b631a (patch) | |
tree | 7b0df85192b2927a46ef612b5053d8df407d5294 /Bugzilla/Constants.pm | |
parent | 317fc6d919da6370863efb76f03cd25d20a9a454 (diff) | |
download | bugs-8782cbb1c99e52d25a5157b0d3b794459f2b631a.tar bugs-8782cbb1c99e52d25a5157b0d3b794459f2b631a.tar.gz bugs-8782cbb1c99e52d25a5157b0d3b794459f2b631a.tar.bz2 bugs-8782cbb1c99e52d25a5157b0d3b794459f2b631a.tar.xz bugs-8782cbb1c99e52d25a5157b0d3b794459f2b631a.zip |
Bug 622943: Simple auditing of changes to Bugzilla::Object subclass objects
r=dkl, a=mkanat
Diffstat (limited to 'Bugzilla/Constants.pm')
-rw-r--r-- | Bugzilla/Constants.pm | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Bugzilla/Constants.pm b/Bugzilla/Constants.pm index 11521749e..7001de0e8 100644 --- a/Bugzilla/Constants.pm +++ b/Bugzilla/Constants.pm @@ -189,6 +189,9 @@ use Memoize; PRIVILEGES_REQUIRED_REPORTER PRIVILEGES_REQUIRED_ASSIGNEE PRIVILEGES_REQUIRED_EMPOWERED + + AUDIT_CREATE + AUDIT_REMOVE ); @Bugzilla::Constants::EXPORT_OK = qw(contenttypes); @@ -575,6 +578,11 @@ use constant PRIVILEGES_REQUIRED_REPORTER => 1; use constant PRIVILEGES_REQUIRED_ASSIGNEE => 2; use constant PRIVILEGES_REQUIRED_EMPOWERED => 3; +# Special field values used in the audit_log table to mean either +# "we just created this object" or "we just deleted this object". +use constant AUDIT_CREATE => '__create__'; +use constant AUDIT_REMOVE => '__remove__'; + sub bz_locations { # We know that Bugzilla/Constants.pm must be in %INC at this point. # So the only question is, what's the name of the directory |