Author: chris.laprun(a)jboss.com
Date: 2011-08-02 16:09:09 -0400 (Tue, 02 Aug 2011)
New Revision: 6980
Modified:
portal/branches/api/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
Log:
- Added hasPermission(Identity, PortalConfig) method so that it can be more easily be used
by the API implementation.
Modified:
portal/branches/api/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java
===================================================================
---
portal/branches/api/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-08-02
17:46:56 UTC (rev 6979)
+++
portal/branches/api/component/portal/src/main/java/org/exoplatform/portal/config/UserACL.java 2011-08-02
20:09:09 UTC (rev 6980)
@@ -225,6 +225,11 @@
public boolean hasPermission(PortalConfig pconfig)
{
Identity identity = getIdentity();
+ return hasPermission(identity, pconfig);
+ }
+
+ public boolean hasPermission(Identity identity, PortalConfig pconfig)
+ {
if (hasPermission(identity, pconfig.getEditPermission()))
{
pconfig.setModifiable(true);
Show replies by date