mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 22:43:41 +08:00
Apply fixes from StyleCI
This commit is contained in:
parent
a1c18b4e0f
commit
49b71511d3
|
@ -189,7 +189,7 @@ class Tag extends AbstractModel
|
||||||
$ids = [];
|
$ids = [];
|
||||||
$hasGlobalPermission = $user->hasPermission($permission);
|
$hasGlobalPermission = $user->hasPermission($permission);
|
||||||
|
|
||||||
$canForTag = function (Tag $tag) use ($user, $permission, $hasGlobalPermission) {
|
$canForTag = function (self $tag) use ($user, $permission, $hasGlobalPermission) {
|
||||||
return ($hasGlobalPermission && ! $tag->is_restricted) || ($tag->is_restricted && $user->hasPermission('tag'.$tag->id.'.'.$permission));
|
return ($hasGlobalPermission && ! $tag->is_restricted) || ($tag->is_restricted && $user->hasPermission('tag'.$tag->id.'.'.$permission));
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user