[opencms-dev] Permissions issue
Noz, Felix
F.Noz at comundus.com
Thu May 15 14:15:40 CEST 2008
Hi,
did you explicitly set the denied flag for a group? If so OpenCms infact denies the right for any user that belongs to this group. So instead setting the denied flag for the second group you can leave this flag unset and explicitly set the Allowed flag for the first group. When you also set the Overwrite inherited option the first group should have the permission on the resource where the second one shouldn't.
To set the permissions programatically have a look at
org.opencms.file.CmsObject#chacc()
and
org.opencms.security.CmsAccessControlEntry
Greetings
Felix
____________________________________________________________________________________
Felix Noz
IT-Berater
Dipl. Informatiker (FH)
comundus GmbH
Schüttelgrabenring 3, 71332 Waiblingen
Telefon +49 (0) 71 51-5 00 28-22
Internet www.comundus.com
Geschäftsführer: Klaus Hillemeier
Amtsgericht Stuttgart, HRB 264290
comundus ist ein Unternehmen der IT EXCELLENCE Group.
____________________________________________________________________________________
-----Ursprüngliche Nachricht-----
Von: opencms-dev-bounces at opencms.org [mailto:opencms-dev-bounces at opencms.org] Im Auftrag von HuyTran at c-mg.net
Gesendet: Donnerstag, 15. Mai 2008 12:44
An: 'The OpenCms mailing list'
Betreff: [opencms-dev] Permissions issue
Hi,
I have a difficult situation with permission settings in OpenCms. I have 2 groups to control access to pages. The first group is allowed to edit a page while the second is banned.
The problem is, I have some users in both the groups. Since OpenCms handle permission in Exclusive way, the users in both group cannot edit the page.
Is there any body know how to solve this? If I want to set the permission in Java classes, what class should I look for?
Thank you
Huy
_______________________________________________
This mail is sent to you from the opencms-dev mailing list To change your list options, or to unsubscribe from the list, please visit http://lists.opencms.org/mailman/listinfo/opencms-dev
More information about the opencms-dev
mailing list