mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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");
|
$sel = $this->getRecord()->related("subscriptions.follower");
|
||||||
foreach($sel->where("model", "openvk\\Web\\Models\\Entities\\Club") as $target) {
|
foreach($sel->where("model", "openvk\\Web\\Models\\Entities\\Club") as $target) {
|
||||||
$target = (new Clubs)->get($target->target);
|
$target = (new Clubs)->get($target->target);
|
||||||
if($admin && !$target->canBeModifiedBy($this)) continue;
|
|
||||||
if(!$target) continue;
|
if(!$target) continue;
|
||||||
|
if($admin && !$target->canBeModifiedBy($this)) continue;
|
||||||
|
|
||||||
$result[] = $target;
|
$result[] = $target;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue