File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
install/deb/filemanager/filegator Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1515 if (isset ($ _SESSION ['user ' ])) {
1616 $ v_user = $ _SESSION ['user ' ];
1717 }
18- if (isset ($ _SESSION ['look ' ]) && ($ _SESSION ['userContext ' ] === 'admin ' ) && ( $ _SESSION [ ' POLICY_SYSTEM_PROTECTED_ADMIN ' ] === ' no ' ) ) {
18+ if (isset ($ _SESSION ['look ' ]) && ($ _SESSION ['userContext ' ] === 'admin ' )) {
1919 $ v_user = $ _SESSION ['look ' ];
2020 }
21+ if ((isset ($ _SESSION ['look ' ]) && ($ _SESSION ['look ' ] == 'admin ' ) && ($ _SESSION ['POLICY_SYSTEM_PROTECTED_ADMIN ' ] == 'yes ' ) )) {
22+ header ('Location: / ' );
23+ }
2124 # Create filemanager sftp key if missing and trash it after 30 min
2225 if (! file_exists ('/home/ ' .basename ($ v_user ).'/.ssh/hst-filemanager-key ' )) {
2326 exec ("sudo /usr/local/hestia/bin/v-add-user-sftp-key " . escapeshellarg (basename ($ v_user )) . " 30 " , $ output , $ return_var );
You can’t perform that action at this time.
0 commit comments