mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-07 16:44:20 +01:00
Implemented for FUDforum/Ilia: changed the hooks addaccount, changepassword & editaccout to be called independent if the user is enabled for the app or not
This commit is contained in:
parent
4c922ae28a
commit
57066401f5
@ -366,11 +366,14 @@
|
||||
$GLOBALS['hook_values']['account_lid'] = $userData['account_lid'];
|
||||
$GLOBALS['hook_values']['account_id'] = $account_id;
|
||||
$GLOBALS['hook_values']['new_passwd'] = $userData['account_passwd'];
|
||||
$GLOBALS['hook_values']['account_status'] = $userData['account_status'];
|
||||
$GLOBALS['hook_values']['account_firstname'] = $userData['account_firstname'];
|
||||
$GLOBALS['hook_values']['account_lastname'] = $userData['account_lastname'];
|
||||
|
||||
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
|
||||
'location' => 'addaccount'
|
||||
));
|
||||
),False,True); // called for every app now, not only enabled ones
|
||||
|
||||
ExecMethod('admin.uiaccounts.list_users');
|
||||
return False;
|
||||
}
|
||||
@ -602,11 +605,13 @@
|
||||
$this->save_user($userData);
|
||||
$GLOBALS['hook_values']['account_id'] = $userData['account_id'];
|
||||
$GLOBALS['hook_values']['account_lid'] = $userData['account_lid'];
|
||||
$GLOBALS['hook_values']['account_status'] = $userData['account_status'];
|
||||
$GLOBALS['hook_values']['account_firstname'] = $userData['account_firstname'];
|
||||
$GLOBALS['hook_values']['account_lastname'] = $userData['account_lastname'];
|
||||
|
||||
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
|
||||
'location' => 'editaccount'
|
||||
));
|
||||
),False,True); // called for every app now, not only enabled ones)
|
||||
|
||||
// check if would create a menu
|
||||
// if we do, we can't return to the users list, because
|
||||
@ -802,9 +807,10 @@
|
||||
$GLOBALS['hook_values']['account_id'] = $_userData['account_id'];
|
||||
$GLOBALS['hook_values']['old_passwd'] = $old_passwd;
|
||||
$GLOBALS['hook_values']['new_passwd'] = $_userData['account_passwd'];
|
||||
|
||||
$GLOBALS['phpgw']->hooks->process($GLOBALS['hook_values']+array(
|
||||
'location' => 'changepassword'
|
||||
));
|
||||
),False,True); // called for every app now, not only enabled ones)
|
||||
}
|
||||
|
||||
$apps = CreateObject('phpgwapi.applications',array(intval($_userData['account_id']),'u'));
|
||||
|
Loading…
Reference in New Issue
Block a user