[gatein-issues] [JBoss JIRA] (GTNPORTAL-3287) Portal.hasPermission returns false if Permission parameter contains multiple Memberships
Peter Palaga (JIRA)
jira-events at lists.jboss.org
Thu Nov 14 16:00:07 EST 2013
[ https://issues.jboss.org/browse/GTNPORTAL-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Palaga resolved GTNPORTAL-3287.
-------------------------------------
Fix Version/s: 3.6.4.Final
3.7.0.Final
Resolution: Done
> Portal.hasPermission returns false if Permission parameter contains multiple Memberships
> ----------------------------------------------------------------------------------------
>
> Key: GTNPORTAL-3287
> URL: https://issues.jboss.org/browse/GTNPORTAL-3287
> Project: GateIn Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Java API
> Affects Versions: 3.6.3.Final
> Reporter: Martin Weiler
> Assignee: Nick Scavelli
> Fix For: 3.6.4.Final, 3.7.0.Final
>
>
> We have 2 sites
> http://localhost:8080/portal/default/
> http://localhost:8080/portal/webadmin/
> In a portlet, we need to show a link to "/portal/webadmin/" only if user has access to "webadmin" site.
> Site "webadmin" has access permissions set as "*:/platform/administrators/admin group1;*:/platform/administrators/admin group2;*:/platform/administrators/admin group3".
> User has Membership Type "member" in "/platform/administrators/admin group1" group.
> In a portlet, we are checking permissions with the following snippet:
> {code}
> PortalRequest portalRequest = PortalRequest.getInstance();
> Site webadminSite = portalRequest.getPortal().getSite(new SiteId("webadmin"));
> portal.hasPermission(portalRequest.getUser() , webadminSite.getAccessPermission());
> {code}
> hasPermission method is returning false.
> Note: access permissions on 'webadmin' site are only set to a single entry (eg. /platform/administrators/admin group1), the method returns true.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the gatein-issues
mailing list