Forums de discussion

AND-relation / conjunction for roles possible?

thumbnail
Dennis Greiffenberg, modifié il y a 14 années.

AND-relation / conjunction for roles possible?

Regular Member Publications: 222 Date d'inscription: 30/04/07 Publications récentes
Hi @ll,

is it possible to have the permissions check for the existence of multiple roles?
Example: I only want to grant write access to the calendar portlet if a use has the roles "myroleA" AND "myroleB".
How would I achieve this setup? As for now the only workaround I found was to grant multiple roles to a group and then grant permission due to group memberships but I don't think that's the best road to go...

Any hint is highly appreciated!

Best regards,
Dennis
thumbnail
Dennis Greiffenberg, modifié il y a 14 années.

RE: AND-relation / conjunction for roles possible?

Regular Member Publications: 222 Date d'inscription: 30/04/07 Publications récentes
Quite a couple of views but no reply so far :-(

Doesn't anybody have a hint on how to do this or even IF it is possible to do this in Liferay?


Best regards,
Dennis
thumbnail
Lisa Simpson, modifié il y a 14 années.

RE: AND-relation / conjunction for roles possible?

Liferay Legend Publications: 2034 Date d'inscription: 05/03/09 Publications récentes
The best thing to do is to grant the "Edit Calendar" role to a group (Group C) and add the members you want to have that role added to that group. I don't think that Liferay is set up to do what you're asking.
thumbnail
Dennis Greiffenberg, modifié il y a 14 années.

RE: AND-relation / conjunction for roles possible?

Regular Member Publications: 222 Date d'inscription: 30/04/07 Publications récentes
Okay, that's at least an answer ;-)

Thanks a lot,
Dennis