Skip to content

Commit 949fdfd

Browse files
author
Kristan Kenney
committed
Add POLICY_USER_VIEW_SUSPENDED
Will enable suspended users to view read-only access of account
1 parent 65ec0fa commit 949fdfd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/v-list-sys-config

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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'",

web/inc/main.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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/");

0 commit comments

Comments
 (0)