import org.argeo.api.cms.CmsConstants;
import org.argeo.api.cms.CmsSession;
import org.argeo.api.cms.CmsSessionId;
+import org.argeo.cms.SystemRole;
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;
/**
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);
}