예제 #1
0
 public static boolean isAllowedOnComponentUuid(UserSession userSession, String componentUuid) {
   return userSession.hasPermission(GlobalPermissions.SYSTEM_ADMIN)
       || userSession.hasComponentUuidPermission(UserRole.ADMIN, componentUuid);
 }
 private static boolean canModifyFilter(UserSession userSession, IssueFilterDto filter) {
   return userSession.isLoggedIn()
       && (StringUtils.equals(filter.getUserLogin(), userSession.getLogin())
           || userSession.hasPermission(GlobalPermissions.SYSTEM_ADMIN));
 }