* Disable the switch and convert menu if current account is not admin in admin::index.

This commit is contained in:
liumengyi
2023-11-02 15:19:51 +08:00
parent 2f08f6452e
commit cbbddbc17d
3 changed files with 5 additions and 2 deletions
+3 -1
View File
@@ -113,7 +113,9 @@ foreach($lang->admin->menuList as $menuKey => $menu)
col
(
setClass('setting-box cursor-pointer border border-hover rounded-md px-2 py-1 h-full'),
set(array('data-id' => $menuKey, 'data-url' => $url)),
set('data-id', $menuKey),
empty($menu['disabled']) ? set('data-url', $url) : null,
!empty($menu['disabled']) ? setClass('disabled') : null,
!empty($menu['disabled']) ? set::title($lang->admin->noPriv) : null,
h4
(