Feature #52225

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

Added by Bernhard Eckl almost 6 years ago. Updated about 4 years ago.

Status:
New
Priority:
Should have
Category:
Frontend
Target version:
-
Start date:
2013-09-24
Due date:
% Done:

0%

PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:
PRC

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.


Related issues

Duplicated by TYPO3 Core - Feature #78373: Access rights - User not in group1 Closed 2016-10-21

History

#1 Updated by Stefan Neufeind over 5 years ago

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 Updated by Bernhard Eckl over 5 years ago

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 Updated by Mathias Schreiber over 4 years ago

  • Status changed from New to Needs Feedback
  • Assignee set to Mathias Schreiber

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 Updated by Stefan Neufeind over 4 years ago

@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 Updated by Alexander Opitz about 4 years ago

  • Status changed from Needs Feedback to New

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

#6 Updated by Susanne Moog about 4 years ago

  • Sprint Focus set to PRC

#7 Updated by Mona Muzaffar about 2 years ago

  • Duplicated by Feature #78373: Access rights - User not in group1 added

Also available in: Atom PDF