mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 08:39:25 +08:00
Don't over-cache the disallowed tags
This commit is contained in:
parent
6f07aef206
commit
15039737b8
@ -31,8 +31,8 @@ class TagPolicy extends AbstractPolicy
|
||||
{
|
||||
static $disallowedTags;
|
||||
|
||||
if (! $disallowedTags) {
|
||||
$disallowedTags = Tag::getIdsWhereCannot($actor, 'discussion.startWithoutApproval');
|
||||
if (! isset($disallowedTags[$actor->id])) {
|
||||
$disallowedTags[$actor->id] = Tag::getIdsWhereCannot($actor, 'discussion.startWithoutApproval');
|
||||
}
|
||||
|
||||
if (in_array($tag->id, $disallowedTags)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user