File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed
Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ json_list() {
8080 "POLICY_SYSTEM_HIDE_ADMIN": "' $POLICY_SYSTEM_HIDE_ADMIN ' ",
8181 "POLICY_SYSTEM_HIDE_SERVICES": "' $POLICY_SYSTEM_HIDE_SERVICES ' ",
8282 "POLICY_SYSTEM_PASSWORD_RESET": "' $POLICY_SYSTEM_PASSWORD_RESET ' ",
83+ "POLICY_USER_VIEW_SUSPENDED": "' $POLICY_USER_VIEW_SUSPENDED ' ",
8384 "POLICY_USER_EDIT_DETAILS": "' $POLICY_USER_EDIT_DETAILS ' ",
8485 "POLICY_USER_DELETE_LOGS": "' $POLICY_USER_DELETE_LOGS ' ",
8586 "POLICY_USER_VIEW_LOGS": "' $POLICY_USER_VIEW_LOGS ' ",
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ function top_panel($user, $TAB) {
155155 unset($ output );
156156
157157 // Log out active sessions for suspended users
158- if ($ panel [$ user ]['SUSPENDED ' ] === 'yes ' ) {
158+ if (( $ panel [$ user ]['SUSPENDED ' ] === 'yes ' ) && ( $ _SESSION [ ' POLICY_USER_VIEW_SUSPENDED ' ] !== ' yes ' ) ) {
159159 $ _SESSION ['error_msg ' ] = "You have been logged out. Please log in again. " ;
160160 session_destroy ();
161161 header ("Location: /login/ " );
You can’t perform that action at this time.
0 commit comments