Issue Feature Closed

#101161New access right: Show if not logged in

Christian Toffolo 06/23/23, 10:37 updated 08/04/24, 08:51

Description

Use case: I want to hide a page only from users in a specific user group (e.g. SpecialUsers). So the page should still be visible if a user is not logged in.

AFAIK, at the moment, there’s no way to do this in TYPO3.

I think the best solution to this problem is to implement a new default access right: “Show if not logged in“
This way I can put all users who are not SpecialUsers in a group “No SpecialUsers”.
Then I will set the access right to the page as:
  • “Show if not logged in”
  • “No SpecialUsers”

This way the page will be visible if a user is not logged in and if a user is in the “No SpecialUsers” group (i.e.: users not in the “SpecialUsers” group).

Another solution could be to split the access right field in two:
- Visible to
- Hidden to
But that is probably too complicated.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.