* Fix bug #38500.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user