* [story#75371,doing,0.5h] Admin register access Permissions

This commit is contained in:
zhangjialiang
2025-06-16 09:27:22 +08:00
parent 0d3b47e9e7
commit 7c5fc1bcae
3 changed files with 13 additions and 0 deletions
+2
View File
@@ -205,6 +205,8 @@ class adminModel extends model
if(common::hasPriv($module, $method)) $menu['disabled'] = false;
}
if(!$this->app->user->admin && $module . $method == 'adminregister') $menu['disabled'] = true;
$order = $menu['order'];
$orders[$order] = $menuKey;