This commit is contained in:
liyuchun
2021-09-08 15:52:00 +08:00
parent 0721ef1513
commit 21b5e77382
3 changed files with 24 additions and 23 deletions
+2 -1
View File
@@ -826,7 +826,8 @@ class actionModel extends model
$actionCondition = '';
if(isset($this->app->user->rights['acls']['actions']))
{
if(empty($this->app->user->rights['acls']['actions'])) return '';
if(empty($this->app->user->rights['acls']['actions'])) return "`objectType` = 'user' and `action` in ('login','logout')";
foreach($this->app->user->rights['acls']['actions'] as $moduleName => $actions)
{
$actionCondition .= "(`objectType` = '$moduleName' and `action` " . helper::dbIN($actions) . ") or ";