Applied API role specs to tags list without stats

This commit is contained in:
Alejandro Celaya
2021-01-04 12:44:29 +01:00
parent 68c601a5a8
commit 24f7fb9c4f
8 changed files with 28 additions and 16 deletions

View File

@@ -56,7 +56,7 @@ class TagRepository extends EntitySpecificationRepository implements TagReposito
{
$result = (int) $this->matchSingleScalarResult(Spec::andX(
new CountTagsWithName($tag),
new WithApiKeySpecsEnsuringJoin($apiKey, 'shortUrls'),
new WithApiKeySpecsEnsuringJoin($apiKey),
));
return $result > 0;