fix: [strict typing] Made Sami's frankenstein setup happy
parent
306a8b5538
commit
1a20eaace9
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue