]
RH Bugzilla Integration commented on GTNPORTAL-3287:
----------------------------------------------------
Boleslaw Dawidowicz <bdawidow(a)redhat.com> changed the Status of [bug
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: