Merge branch 'main' into develop

refacto/CRUDComponent
iglocska 2023-09-12 14:26:01 +02:00
commit 98b470774e
No known key found for this signature in database
GPG Key ID: BEA224F1FEF113AC
1 changed files with 1 additions and 1 deletions

View File

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