@Override
 public boolean check(UserContext user, Session source) {
   return super.check(user, source)
       && (user.getCurrentAuthority().hasRight(Right.HQLReportAdd)
           || SavedHQL.hasQueries(
               Flag.APPEARANCE_ADMINISTRATION,
               user.getCurrentAuthority().hasRight(Right.HQLReportsAdminOnly)));
 }
    @Override
    public boolean check(UserContext user, Session source) {
      if (!permissionSession.check(user, source)) return false;

      // Is there a mapping to show?
      if (EventDateMapping.hasMapping(source.getUniqueId())) return true;

      // Is there a mapping to add?
      if (user.getCurrentAuthority().hasRight(Right.EventDateMappingEdit)
          && permissionEventDateMappingEdit.check(user, source)) return true;

      return false;
    }
 @Override
 public boolean check(UserContext user, SavedHQL source) {
   if (source.isSet(SavedHQL.Flag.ADMIN_ONLY))
     return user.getCurrentAuthority().hasRight(Right.HQLReportsAdminOnly);
   return true;
 }