* [bug #57122] show access denied hint when no priv to view api.

This commit is contained in:
sunhao
2024-11-15 15:18:41 +08:00
committed by 刘刚
parent 6922773ed7
commit 95c1c05b39
6 changed files with 7 additions and 0 deletions
+1
View File
@@ -15,6 +15,7 @@ $privs['collect'] = 'no';
$privs['createApi'] = hasPriv('api', 'create');
$privs['exportApi'] = $this->config->edition != 'open' && hasPriv('api', 'export');
$privs['edit'] = hasPriv('api', 'edit');
$privs['view'] = hasPriv('api', 'view');
$privs['delete'] = hasPriv('api', 'delete');
$privs['createLib'] = hasPriv('api', 'createLib');
$privs['editLib'] = hasPriv('api', 'editLib');