This commit is contained in:
zhaoke
2023-09-09 15:15:08 +08:00
parent 0880d0db4b
commit 77f0c449a0
+2
View File
@@ -12,6 +12,8 @@ class repoModel extends model
{
$account = $this->app->user->account;
$acl = !empty($repo->acl->acl) ? $repo->acl->acl : 'custom';
if(empty($repo->acl->users)) $repo->acl->users = array();
if(empty($repo->acl->groups)) $repo->acl->groups = array();
if(strpos(",{$this->app->company->admins},", ",$account,") !== false || $acl == 'open') return true;
if($acl == 'custom' && empty(array_filter($repo->acl->groups)) && empty(array_filter($repo->acl->users))) return true;