any Users can change password

This commit is contained in:
Ibnu Maksum 2024-02-19 09:12:56 +07:00
parent 61060c4173
commit 2c16bb289e
No known key found for this signature in database
GPG key ID: 7FC82848810579E5

View file

@ -549,9 +549,6 @@ switch ($action) {
break;
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
$ui->display('change-password.tpl');
break;