any Users can change password
This commit is contained in:
parent
61060c4173
commit
2c16bb289e
@ -549,9 +549,6 @@ switch ($action) {
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case 'change-password':
|
case 'change-password':
|
||||||
if (!in_array($admin['user_type'], ['SuperAdmin', 'Admin'])) {
|
|
||||||
r2(U . "dashboard", 'e', Lang::T('You do not have permission to access this page'));
|
|
||||||
}
|
|
||||||
run_hook('view_change_password'); #HOOK
|
run_hook('view_change_password'); #HOOK
|
||||||
$ui->display('change-password.tpl');
|
$ui->display('change-password.tpl');
|
||||||
break;
|
break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user