Ignore:
Timestamp:
Feb 20, 2017, 8:09:27 AM (5 years ago)
Author:
Nicklas Nordborg
Message:

References #2043: Activating/deactivating roles on the fly in a login session

Added a "Inactive roles" tab in the "Preferences" dialog. This allows a user to set roles that should be inactive by default after logging in.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/my_base/user/submit_user.jsp

    r7112 r7295  
    4848  import="net.sf.basedb.clients.web.formatter.FormatterFactory"
    4949  import="java.util.Arrays"
     50  import="java.util.Collections"
    5051  import="java.util.List"
    5152%>
     
    173174      stickyItems == null ? "" : Values.getString(Arrays.asList(stickyItems), ":", true));
    174175   
     176    // Roles tab
     177    String[] inactiveRoles = request.getParameterValues("inactiveRoles");
     178    sc.setUserClientSetting("inactiveRoles", inactiveRoles == null ? null : Values.getString(Arrays.asList(inactiveRoles), ":", true));
     179   
    175180    message = "Preferences saved";
    176181  }
Note: See TracChangeset for help on using the changeset viewer.