[gatein-issues] [JBoss JIRA] (GTNPORTAL-3287) Portal.hasPermission returns false if Permission parameter contains multiple Memberships

RH Bugzilla Integration (JIRA) issues at jboss.org
Wed Jan 8 11:38:33 EST 2014


    [ https://issues.jboss.org/browse/GTNPORTAL-3287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12934511#comment-12934511 ] 

RH Bugzilla Integration commented on GTNPORTAL-3287:
----------------------------------------------------

Tomas Kyjovsky <tkyjovsk at redhat.com> changed the Status of [bug 1029005|https://bugzilla.redhat.com/show_bug.cgi?id=1029005] from ON_QA to VERIFIED
                
> 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