mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Groups: Hotfix for "Managers" tab
This commit is contained in:
parent
e5238ecc41
commit
b2a993d649
1 changed files with 1 additions and 1 deletions
|
@ -472,8 +472,8 @@ class User extends RowModel
|
|||
$sel = $this->getRecord()->related("subscriptions.follower");
|
||||
foreach($sel->where("model", "openvk\\Web\\Models\\Entities\\Club") as $target) {
|
||||
$target = (new Clubs)->get($target->target);
|
||||
if($admin && !$target->canBeModifiedBy($this)) continue;
|
||||
if(!$target) continue;
|
||||
if($admin && !$target->canBeModifiedBy($this)) continue;
|
||||
|
||||
$result[] = $target;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue