Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for hasActionRole (1.95 sec)

  1. src/main/webapp/WEB-INF/fe.tld

      <function>
        <description>Check if user has a permission.</description>
        <name>permission</name>
        <function-class>org.codelibs.fess.taglib.FessFunctions</function-class>
        <function-signature>boolean hasActionRole(java.lang.String)</function-signature>
        <example>${fe:permission("admin-dashboard")}</example>
      </function>
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jan 18 11:38:54 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/taglib/FessFunctions.java

         *
         * @param role the role to check (supports both view and edit variants)
         * @return true if the user has the role or admin privileges, false otherwise
         */
        public static boolean hasActionRole(final String role) {
            final String[] roles;
            if (role.endsWith(FessAdminAction.VIEW)) {
                roles = new String[] { role, role.substring(0, role.length() - FessAdminAction.VIEW.length()) };
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 25.3K bytes
    - Viewed (0)
Back to top