Improve role management
[lgpl/argeo-commons.git] / org.argeo.cms / src / org / argeo / cms / auth / CurrentUser.java
index 2fd8730d8aafd8c77fbf2aae0f750025e3f1d5bf..f2b4f0a58250ae584a0f9ee217df26bcc2ed1f81 100644 (file)
@@ -20,7 +20,7 @@ import org.argeo.api.cms.CmsSessionId;
 import org.argeo.cms.internal.auth.CmsSessionImpl;
 import org.argeo.cms.internal.auth.ImpliedByPrincipal;
 import org.argeo.cms.internal.runtime.CmsContextImpl;
-import org.argeo.util.CurrentSubject;
+import org.argeo.cms.util.CurrentSubject;
 import org.osgi.service.useradmin.Authorization;
 
 /**
@@ -75,7 +75,7 @@ public final class CurrentUser {
                return role.implied(currentSubject(), context);
        }
 
-       /** Implies this {@link SystemRole} in this context. */
+       /** Implies this role name, also independently of the context. */
        public final static boolean implies(String role, String context) {
                return SystemRole.implied(NamespaceUtils.parsePrefixedName(role), currentSubject(), context);
        }