/** * Called when a user has been removed : delete rights about this user * * @param jEvent $event the event */ function onAuthRemoveUser($event) { if ($GLOBALS['gJConfig']->acl2['driver'] == 'db') { $login = $event->getParam('login'); jAcl2DbUserGroup::removeUser($login); } }
/** * Called when a user has been removed : delete rights about this user * * @param jEvent $event the event */ function onAuthRemoveUser($event) { if (jApp::config()->acl2['driver'] == 'db') { $login = $event->getParam('login'); jAcl2DbUserGroup::removeUser($login); } }
public function testRemoveUser() { // on enleve un user jAcl2DbUserGroup::removeUser('robert'); $this->usergroups = array(array('login' => 'laurent', 'id_aclgrp' => $this->grpId5), array('login' => 'max', 'id_aclgrp' => $this->grpId6), array('login' => 'max', 'id_aclgrp' => $this->defaultGroupId)); $this->assertTableContainsRecords('jacl2_user_group', $this->usergroups); array_pop($this->groups); $this->assertTableContainsRecords('jacl2_group', $this->groups); }