mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-27 11:09:20 +03:00
allowAdminPanel => adminAllowed
This commit is contained in:
parent
2a01d8c991
commit
c1dd6edc28
4 changed files with 5 additions and 6 deletions
|
|
@ -17,7 +17,7 @@ class AdminApp extends AbstractApp {
|
|||
}
|
||||
|
||||
start() {
|
||||
if (!Settings.app('allowAdminPanel')) {
|
||||
if (!Settings.app('adminAllowed')) {
|
||||
rl.route.root();
|
||||
setTimeout(() => location.href = '/', 1);
|
||||
} else if (SettingsGet('Auth')) {
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export const
|
|||
* @returns {string}
|
||||
*/
|
||||
logoutLink = () => (rl.adminArea() && !Settings.app('adminHostUse'))
|
||||
? SERVER_PREFIX + (Settings.app('adminPath') || 'admin')
|
||||
? SERVER_PREFIX + Settings.app('adminPath')
|
||||
: ROOT,
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue