nexus basic
This commit is contained in:
@@ -24,7 +24,7 @@ $publicPaths = [
|
||||
'auth/me',
|
||||
'module/pi_control/terminal_info',
|
||||
];
|
||||
$requiresGlobalAuth = in_array($uriPath, ['settings', 'users', 'modules', 'modules/install', 'modules/sql-import', 'debug', 'exports/database.sql', 'dashboard', 'dashboards', 'integrations', 'page-modules'], true)
|
||||
$requiresGlobalAuth = in_array($uriPath, ['settings', 'settings/widgets', 'settings/search-engines', 'settings/apps', 'users', 'modules', 'modules/install', 'modules/sql-import', 'debug', 'exports/database.sql', 'dashboard', 'dashboards', 'integrations', 'page-modules'], true)
|
||||
|| str_starts_with($uriPath, 'modules/setup/')
|
||||
|| str_starts_with($uriPath, 'modules/access/');
|
||||
if (str_starts_with($uriPath, 'page-modules/view/')) {
|
||||
@@ -275,6 +275,12 @@ if (str_starts_with($uriPath, 'modules/install')) {
|
||||
$target = $pagesBase . '/auth/logout.php';
|
||||
} elseif ($uriPath === 'settings') {
|
||||
$target = $pagesBase . '/users/settings.php';
|
||||
} elseif ($uriPath === 'settings/widgets') {
|
||||
$target = $pagesBase . '/users/settings_widgets.php';
|
||||
} elseif ($uriPath === 'settings/search-engines') {
|
||||
$target = $pagesBase . '/users/settings_search_engines.php';
|
||||
} elseif ($uriPath === 'settings/apps') {
|
||||
$target = $pagesBase . '/users/settings_apps.php';
|
||||
} elseif ($uriPath === 'users') {
|
||||
$target = $pagesBase . '/users/index.php';
|
||||
} elseif ($uriPath === 'dashboard') {
|
||||
|
||||
Reference in New Issue
Block a user