Merge branch 'main' into develop
commit
98b470774e
|
@ -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