Foren

AND-relation / conjunction for roles possible?

thumbnail
Dennis Greiffenberg, geändert vor 14 Jahren.

AND-relation / conjunction for roles possible?

Regular Member Beiträge: 222 Beitrittsdatum: 30.04.07 Neueste Beiträge
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, geändert vor 14 Jahren.

RE: AND-relation / conjunction for roles possible?

Regular Member Beiträge: 222 Beitrittsdatum: 30.04.07 Neueste Beiträge
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, geändert vor 14 Jahren.

RE: AND-relation / conjunction for roles possible?

Liferay Legend Beiträge: 2034 Beitrittsdatum: 05.03.09 Neueste Beiträge
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, geändert vor 14 Jahren.

RE: AND-relation / conjunction for roles possible?

Regular Member Beiträge: 222 Beitrittsdatum: 30.04.07 Neueste Beiträge
Okay, that's at least an answer ;-)

Thanks a lot,
Dennis