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); }