Changeset 4903


Ignore:
Timestamp:
Apr 24, 2009, 1:16:22 PM (13 years ago)
Author:
Nicklas Nordborg
Message:

Fixes #1179: A user should be able to see which groups he is a part of without any extra credentials

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/include/menu.jsp

    r4889 r4903  
    817817    <%
    818818    // Administrate menu
    819     final boolean hasUsers = sc.hasPermission(Permission.READ, Item.USER);
    820     final boolean hasGroups = sc.hasPermission(Permission.READ, Item.GROUP);
     819    final boolean hasUsers = !sc.hasPermission(Permission.DENIED, Item.USER);
     820    final boolean hasGroups = !sc.hasPermission(Permission.DENIED, Item.GROUP);
    821821    final boolean hasRoles = sc.hasPermission(Permission.READ, Item.ROLE);
    822822    final boolean hasQuota = sc.hasPermission(Permission.READ, Item.QUOTA);
Note: See TracChangeset for help on using the changeset viewer.