4190
Signed-off-by: Roger Szabo <roger.szabo@web.de>
This commit is contained in:
parent
133f3fdc9a
commit
f1522a8dca
2 changed files with 35 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
*
|
*
|
||||||
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
||||||
* @author Lukas Reschke <lukas@statuscode.ch>
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
||||||
|
* @author Roger Szabo <roger.szabo@web.de>
|
||||||
*
|
*
|
||||||
* @license GNU AGPL version 3 or any later version
|
* @license GNU AGPL version 3 or any later version
|
||||||
*
|
*
|
||||||
|
@ -72,5 +73,36 @@ class GroupManagement extends Action {
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* log create group to group event
|
||||||
|
*
|
||||||
|
* @param IGroup $group
|
||||||
|
*/
|
||||||
|
public function createGroup(IGroup $group) {
|
||||||
|
$this->log('Group created: "%s"',
|
||||||
|
[
|
||||||
|
'group' => $group->getGID()
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'group'
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* log delete group to group event
|
||||||
|
*
|
||||||
|
* @param IGroup $group
|
||||||
|
*/
|
||||||
|
public function deleteGroup(IGroup $group) {
|
||||||
|
$this->log('Group deleted: "%s"',
|
||||||
|
[
|
||||||
|
'group' => $group->getGID()
|
||||||
|
],
|
||||||
|
[
|
||||||
|
'group'
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
*
|
*
|
||||||
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
* @author Bjoern Schiessle <bjoern@schiessle.org>
|
||||||
* @author Lukas Reschke <lukas@statuscode.ch>
|
* @author Lukas Reschke <lukas@statuscode.ch>
|
||||||
|
* @author Roger Szabo <roger.szabo@web.de>
|
||||||
*
|
*
|
||||||
* @license GNU AGPL version 3 or any later version
|
* @license GNU AGPL version 3 or any later version
|
||||||
*
|
*
|
||||||
|
@ -96,6 +97,8 @@ class AuditLogger {
|
||||||
$groupActions = new GroupManagement($this->logger);
|
$groupActions = new GroupManagement($this->logger);
|
||||||
$this->groupManager->listen('\OC\Group', 'postRemoveUser', [$groupActions, 'removeUser']);
|
$this->groupManager->listen('\OC\Group', 'postRemoveUser', [$groupActions, 'removeUser']);
|
||||||
$this->groupManager->listen('\OC\Group', 'postAddUser', [$groupActions, 'addUser']);
|
$this->groupManager->listen('\OC\Group', 'postAddUser', [$groupActions, 'addUser']);
|
||||||
|
$this->groupManager->listen('\OC\Group', 'postDelete', [$groupActions, 'deleteGroup']);
|
||||||
|
$this->groupManager->listen('\OC\Group', 'postCreate', [$groupActions, 'createGroup']);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue