summaryrefslogtreecommitdiffstats
path: root/apps/admin_audit
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2018-03-19 15:23:30 +0100
committerArthur Schiwon <blizzz@arthur-schiwon.de>2018-04-05 12:46:15 +0200
commit373a1d53918db011ca36351ad8e5240567ad999c (patch)
tree99277022939c8af14f31c9d35034fe2a9565fd5f /apps/admin_audit
parent2ebf26e4447c6c5eef41be35ee4487c78ffe8231 (diff)
downloadnextcloud-server-373a1d53918db011ca36351ad8e5240567ad999c.tar.gz
nextcloud-server-373a1d53918db011ca36351ad8e5240567ad999c.zip
more consistent naming
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Diffstat (limited to 'apps/admin_audit')
-rw-r--r--apps/admin_audit/lib/Actions/UserManagement.php6
-rw-r--r--apps/admin_audit/lib/AppInfo/Application.php4
2 files changed, 5 insertions, 5 deletions
diff --git a/apps/admin_audit/lib/Actions/UserManagement.php b/apps/admin_audit/lib/Actions/UserManagement.php
index 9e015160773..5cf1494df6e 100644
--- a/apps/admin_audit/lib/Actions/UserManagement.php
+++ b/apps/admin_audit/lib/Actions/UserManagement.php
@@ -55,9 +55,9 @@ class UserManagement extends Action {
*
* @param string $uid
*/
- public function announce(string $uid) {
+ public function assign(string $uid) {
$this->log(
- 'UserID assgined: "%s"',
+ 'UserID assigned: "%s"',
[ 'uid' => $uid ],
[ 'uid' ]
);
@@ -83,7 +83,7 @@ class UserManagement extends Action {
*
* @param string $uid
*/
- public function revoke(string $uid) {
+ public function unassign(string $uid) {
$this->log(
'UserID unassigned: "%s"',
[ 'uid' => $uid ],
diff --git a/apps/admin_audit/lib/AppInfo/Application.php b/apps/admin_audit/lib/AppInfo/Application.php
index 4f134ab308d..df39e3eb111 100644
--- a/apps/admin_audit/lib/AppInfo/Application.php
+++ b/apps/admin_audit/lib/AppInfo/Application.php
@@ -93,8 +93,8 @@ class Application extends App {
/** @var IUserSession|Session $userSession */
$userSession = $this->getContainer()->getServer()->getUserSession();
$userSession->listen('\OC\User', 'postSetPassword', [$userActions, 'setPassword']);
- $userSession->listen('\OC\User', 'announceUser', [$userActions, 'announce']);
- $userSession->listen('\OC\User', 'postRevokeUser', [$userActions, 'revoke']);
+ $userSession->listen('\OC\User', 'assignedUserId', [$userActions, 'assign']);
+ $userSession->listen('\OC\User', 'postUnassignedUserId', [$userActions, 'unassign']);
}
protected function groupHooks(ILogger $logger) {