* Fix bug#39056.

This commit is contained in:
zhujinyong
2023-10-06 21:54:01 +08:00
parent 803fcd5005
commit 4374284bac
+4 -6
View File
@@ -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);
}