Issue Feature Closed

#52225Frontend user access for users which are not in selected usergroup(s)

Bernhard Eckl 09/24/13, 14:46 updated 09/29/26, 12:09

Description

Sometimes I have a contents with restricted access in frontend for specific usergroup(s). There I insert the restricted content (like news plug-in, set the usergroups which are allowed to view the content), a login box (no access definition), a text element where I describe that the content is restricted to some users and that the user has to login (access to not logged in users) and another text describing that he is has no access to the content (should be only visible for logged in users which are NOT in the defined usergroups). But it is not possible to set access permissions for logged in users which are not in one or more specific usergroups. I have done this using extension maja_tscondition and a condition like: ![usergroup = 36]. This solution works but is not usable for editors (editors don’t know typoscript). My suggestion for this problem is to add a checkbox in the access tab (page properties and content elements) naming like »Show content only for logged in users which are not in the selected usergroups«. I think I am not the only one, this »problem« should have lots of other integrators with restricted access content.

Reviews 0

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

History 13

  1. Stefan Neufeind commented <span data-processor="relativetime" data-value="2013-11-27T11:51:23+00:00" > 11/27/13, 11:51 </span>

    Do you always use the same set of groups? If so, maybe you can give your content-elements some different kind of “flag” and not use the regular access-restrictions. Then inside TypoScript when fetching the content-elements on a page to render you could maybe check there for each item if it should be displayed or not. Might that work for you?

  2. Bernhard Eckl commented <span data-processor="relativetime" data-value="2013-11-27T19:30:39+00:00" > 11/27/13, 19:30 </span>

    No, I need this on different areas with different group permissions. E. g. only staff or professors should see some content elements, but the others (e.g. students) should instead of a blank page see a message (another content element with access for users who are not in specific groups). I can not imagine that I am the only one who would need this or are all other people showing the users just blank pages for the users who are not in the asked groups(s)?

  3. Mathias Schreiber commented and changed status New Needs Feedback assigned to Mathias Schreiber <span data-processor="relativetime" data-value="2015-01-21T09:22:24+00:00" > 01/21/15, 09:22 </span>

    Hi bernhard,

    this is tricky, we built this once for a customer, but that was a one-time solution.

    Could you supply a concept in more detail how the rendered SQL should look like under certain conditions?
    That way I could try to fine someone willing to implement that.

    Thanks for the idea :)

  4. Stefan Neufeind commented <span data-processor="relativetime" data-value="2015-01-21T09:27:12+00:00" > 01/21/15, 09:27 </span>

    @Bernhard: Do I read right that it’s an “inversion” of the usergroup-access-right? So you have one element for which access is limited to a certain group and you want the other element to appear when the access-restriction is not fulfilled?

  5. Alexander Opitz commented and changed status Needs Feedback New <span data-processor="relativetime" data-value="2015-06-16T08:33:12+00:00" > 06/16/15, 08:33 </span>

    @Stefan Yes, this seams the intended behavior the author would like to have.

  6. Bernhard Eckl commented <span data-processor="relativetime" data-value="2021-05-22T14:01:10+00:00" > 05/22/21, 14:01 </span>

    Are there any news here? This is still a desired feature and not implemented. Just a checkbox to check if the user is NOT in the selected usergroup would be great.

    Example: A page with a login form (access hide when logged in) and a content element restricted for one certain usergroup. If a user who is not in that group is logged in the user just gets a page without content. But if that checkbox would exist another content element could be shown for users who are not in that group (with content like: „You don‘t habe permission to see the content here.“).

  7. Bernhard Eckl commented <span data-processor="relativetime" data-value="2025-10-28T15:16:15+00:00" > 10/28/25, 15:16 </span>

    This issue is now 12 years old but not less important now. Is there any chance to get this feature?

  8. Garvin Hicking commented and changed removed the assignee <span data-processor="relativetime" data-value="2025-11-05T20:06:22+00:00" > 11/05/25, 20:06 </span>

    I’m afraid that if the issue hasn’t gained traction or interest over time, it’s highly unlikely this will “get feet”.

    I assume most people solve this with distinct content element plugins and custom logic inside that plugin’s controller, evaluating the logins with custom logic. Such a plugin could then be distinctively configured and have specific layout – and it wouldn’t be much code.

    Adding this inversion logic to the code with little demand would create maintainenance issues and affect quite a few records in the core (everything with the “access” flag), so it would have thorough test coverage and implementation…

    Probably it could even be solved with an extension completely on its own, extending all tt_content records with that checkbox and doing your own evaluation, I believe this wouldn’t require changes in the core to be made possible…

  9. Georg Ringer commented and changed status New Closed <span data-processor="relativetime" data-value="2026-09-29T12:09:22+00:00" > 09/29/26, 12:09 </span>

    closing this issue for bit of cleanup. I solved it with https://github.com/georgringer/inverted_usergroup_access