Permalink
Browse files

standardise log message wording and promote level

  • Loading branch information...
1 parent 3e653ef commit 289a65f1ea820a6ebaed3f21fcec7c743dc790f4 @adrianoldham adrianoldham committed with Mar 22, 2013
Showing with 11 additions and 3 deletions.
  1. +11 −3 site/cgi-bin/modules/BSE/AdminUsers.pm
@@ -9,7 +9,7 @@ use BSE::TB::AdminUsers;
use BSE::TB::AdminGroups;
use BSE::Util::Iterate;
-our $VERSION = "1.006";
+our $VERSION = "1.007";
my %actions =
(
@@ -303,8 +303,8 @@ sub req_adduser {
(
component => "admin:users:adduser",
object => $user,
- msg => "User '".$user->logon."' created",
- level => "info",
+ msg => "Admin User '".$user->logon."' created",
+ level => "notice",
);
return $class->refresh($req, 'a_showuser', userid=>$user->{id},
@@ -949,6 +949,14 @@ sub req_deluser {
$class->_save_htusers($req, \$msg);
+ $req->audit
+ (
+ component => "admin:users:deluser",
+ object => $user,
+ msg => "Admin User '".$user->logon."' deleted",
+ level => "notice",
+ );
+
return $class->refresh($req, a_users =>
'm' => $msg);
}

0 comments on commit 289a65f

Please sign in to comment.