File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 3030 UdoitUtils::instance ()->exitWithPageError ("Missing Session information. Please refresh the page. Missing: {$ key }" );
3131 }
3232}
33+
3334// If the feature has been disabled, deny access.
3435if (!$ admin_panel_enabled ) {
3536 UdoitUtils::instance ()->exitWithPageError ("This feature has been disabled. Please contact your UDOIT administrator. " );
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ function sanitize_id($data)
4949 }
5050}
5151
52+ // If the feature has been disabled, deny access.
53+ if (!$ admin_panel_enabled ) {
54+ respond_with_error (403 , 'This feature has been disabled. Please contact your UDOIT administrator. ' );
55+ }
56+
5257// If Administrator is not found in the user's list of roles, kick them out with an error
5358if (!$ _SESSION ['is_admin ' ]) {
5459 // Set response to 403 (Forbidden)
You can’t perform that action at this time.
0 commit comments