diff --git a/module/repo/model.php b/module/repo/model.php index b85cf65975..be47606da1 100644 --- a/module/repo/model.php +++ b/module/repo/model.php @@ -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;