Skip to content

Commit c698f26

Browse files
committed
NGSTACK-977 update phpdocs and remove tag visibility information being shown to the user
1 parent 9987286 commit c698f26

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

bundle/API/Repository/TagsService.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,15 +289,15 @@ public function newTagUpdateStruct(): TagUpdateStruct;
289289
/**
290290
* Hides $tag.
291291
*
292-
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException If the current user is not allowed to delete this tag
292+
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException If the current user is not allowed to hide this tag
293293
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException If the specified tag is not found
294294
*/
295295
public function hideTag(Tag $tag): void;
296296

297297
/**
298298
* Unhides $tag.
299299
*
300-
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException If the current user is not allowed to delete this tag
300+
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\UnauthorizedException If the current user is not allowed to unhide this tag
301301
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException If the specified tag is not found
302302
*/
303303
public function unhideTag(Tag $tag): void;

bundle/Controller/TagViewController.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,8 @@ final class TagViewController extends Controller
1414
*/
1515
public function viewAction(TagView $view): TagView
1616
{
17-
if ($view->getTag()->isHidden) {
18-
throw $this->createNotFoundException('Tag is hidden.');
19-
}
20-
2117
if ($view->getTag()->isInvisible) {
22-
throw $this->createNotFoundException('Tag is hidden by parent.');
18+
throw $this->createNotFoundException();
2319
}
2420

2521
return $view;

0 commit comments

Comments
 (0)