From 77f0c449a09c6a4e1a5271c82aca336759c98ef5 Mon Sep 17 00:00:00 2001 From: zhaoke Date: Sat, 9 Sep 2023 15:15:08 +0800 Subject: [PATCH] * Fix bug #38500. --- module/repo/model.php | 2 ++ 1 file changed, 2 insertions(+) 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;