Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop

refacto/CRUDComponent
Sami Mokaddem 2023-09-12 14:28:07 +02:00
commit 44527bbcb8
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class OrgGroupsTable extends AppTable
return $validator;
}
public function checkIfGroupAdmin(int $groupId, mixed $user): bool
public function checkIfGroupAdmin(int $groupId, User $user): bool
{
$orgGroup = $this->get($groupId, ['contain' => 'Users']);
if (empty($orgGroup)) {