Uploaded image for project: 'PhenoTips'
  1. PT-3951

Entity "access level" may be below "visibility level" in some cases

    Details

    • Sprint:

      Description

      In some cases (e.g. for guest users?) entity access level may be "none" while visibility level is "matchable". This does not make sense, since if visibility is matchable access level should also be at least matchable.

      @Inject
      @Named("secure")
      protected EntityPermissionsManager permissions;
      
      ...
      
      EntityAccess entityAccess = this.permissions.getEntityAccess(match);
      AccessLevel access = entityAccess.getAccessLevel();
      Visibility visibility = entityAccess.getVisibility();
      logger.error("Match access: [{}], match visibility: [{}]", access.getName(), visibility.getName());
      

      results in

      Match access: [none], match visibility: [matchable] 
      

        Attachments

          Activity

            People

            • Assignee:
              sdumitriu Sergiu Dumitriu
              Reporter:
              asm Andriy Misyura
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: