mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 21:11:55 +08:00
Apply fixes from StyleCI
This commit is contained in:
parent
a1c18b4e0f
commit
49b71511d3
|
@ -189,7 +189,7 @@ class Tag extends AbstractModel
|
|||
$ids = [];
|
||||
$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));
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user