diff --git a/core/users/app_config.php b/core/users/app_config.php index 6665cf7210..622c1d6fee 100644 --- a/core/users/app_config.php +++ b/core/users/app_config.php @@ -87,6 +87,11 @@ $y++; $apps[$x]['permissions'][$y]['name'] = "view_users"; $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $y++; + $apps[$x]['permissions'][$y]['name'] = "user_status"; + $apps[$x]['permissions'][$y]['groups'][] = "superadmin"; + $apps[$x]['permissions'][$y]['groups'][] = "admin"; + $apps[$x]['permissions'][$y]['groups'][] = "users"; //default settings $y=0; @@ -467,3 +472,4 @@ $apps[$x]['db'][$y]['fields'][$z]['description']['en-us'] = ""; ?> + diff --git a/core/users/user_edit.php b/core/users/user_edit.php index 577f31c4f9..d4ffd4bf85 100644 --- a/core/users/user_edit.php +++ b/core/users/user_edit.php @@ -861,7 +861,7 @@ echo " \n"; echo " \n"; - if (isset($_SESSION['user_status_display']) && $_SESSION['user_status_display'] != "false") { + if (permission_exists("user_status")) { echo " \n"; echo " \n"; echo " ".$text['label-status']."\n";