From 4374284bac57ccb3f784fc11f0f3711cd55d77b8 Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Fri, 6 Oct 2023 21:54:01 +0800 Subject: [PATCH] * Fix bug#39056. --- module/user/model.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/module/user/model.php b/module/user/model.php index c28fd9b139..6a1f6afbf2 100644 --- a/module/user/model.php +++ b/module/user/model.php @@ -1147,12 +1147,10 @@ class userModel extends model } } - /* Set basic priv when no any priv. */ - if(empty($rights)) - { - $rights['index']['index'] = 1; - $rights['my']['index'] = 1; - } + /* Set basic privs. */ + $rights['index']['index'] = 1; + $rights['my']['index'] = 1; + return array('rights' => $rights, 'acls' => $acls, 'projects' => $canManageProjects, 'programs' => $canManagePrograms, 'products' => $canManageProducts, 'executions' => $canManageExecutions); }