Merge branch 'develop' of github.com:cerebrate-project/cerebrate into develop
commit
44527bbcb8
|
@ -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