[Design of JBoss Portal] - permission bug ?
by cpage
Hi,
I noticed a strange behaviour in permissions.
When i initialize a PortalObjectPermission (or an InstancePermission) with some actions, the "getActions()" function return different actions.
For example :
| PortalObjectPermission perm = new PortalObjectPermission(myPageId, "view");
| String actions = perm.getActions(); // --> return create,personalizerecursive,dashboardrecursive
|
| perm = new PortalObjectPermission(myPageId, "personalize");
| actions = perm.getActions(); // --> return personalizerecursive,dashboardrecursive
|
In getActions(), to have same actions, i replace
int mask = 2 >> i;
by :
int mask = 1 << i;
If it's not a bug, can you explain please ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4181510#4181510
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4181510
16 years, 3 months