mirror of
https://github.com/flarum/core.git
synced 2025-08-10 18:35:56 +02:00
Null positions refer to secondary tags
This commit is contained in:
committed by
Alexander Skvortsov
parent
550a04df83
commit
5291c969a4
@@ -212,7 +212,7 @@ class Tag extends AbstractModel
|
|||||||
$can = $canForTag($tag->parent);
|
$can = $canForTag($tag->parent);
|
||||||
}
|
}
|
||||||
|
|
||||||
$isPrimary = $tag->position === null && ! $tag->parent;
|
$isPrimary = $tag->position !== null && ! $tag->parent;
|
||||||
|
|
||||||
if ($can === $condition && ($includePrimary && $isPrimary || $includeSecondary && ! $isPrimary)) {
|
if ($can === $condition && ($includePrimary && $isPrimary || $includeSecondary && ! $isPrimary)) {
|
||||||
$ids[] = $tag->id;
|
$ids[] = $tag->id;
|
||||||
|
Reference in New Issue
Block a user