File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -289,15 +289,15 @@ public function newTagUpdateStruct(): TagUpdateStruct;
289
289
/**
290
290
* Hides $tag.
291
291
*
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
293
293
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException If the specified tag is not found
294
294
*/
295
295
public function hideTag (Tag $ tag ): void ;
296
296
297
297
/**
298
298
* Unhides $tag.
299
299
*
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
301
301
* @throws \Ibexa\Contracts\Core\Repository\Exceptions\NotFoundException If the specified tag is not found
302
302
*/
303
303
public function unhideTag (Tag $ tag ): void ;
Original file line number Diff line number Diff line change @@ -14,12 +14,8 @@ final class TagViewController extends Controller
14
14
*/
15
15
public function viewAction (TagView $ view ): TagView
16
16
{
17
- if ($ view ->getTag ()->isHidden ) {
18
- throw $ this ->createNotFoundException ('Tag is hidden. ' );
19
- }
20
-
21
17
if ($ view ->getTag ()->isInvisible ) {
22
- throw $ this ->createNotFoundException (' Tag is hidden by parent. ' );
18
+ throw $ this ->createNotFoundException ();
23
19
}
24
20
25
21
return $ view ;
You can’t perform that action at this time.
0 commit comments