Bug in HandleProfileAttachmentsAction.isPermitted() ?

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 2.1.4
    • Affects Version/s: 1.4.4
    • Component/s: None

      Seems to be 2 types of user retrieved - is this a bug or intentional?

          public boolean isPermitted()
          {
              // This page is only permitted if the user to whom the attachments belong is allowed to attach
              // files.
              User user = getRemoteUser();
              User whyDoWeHave2Users = getUser();
              return GeneralUtil.isSuperUser(whyDoWeHave2Users) ||
                      (permissionManager.hasPermission(SpacePermission.USE_CONFLUENCE_PERMISSION, null, user, user.getGroups()) &&
                      permissionManager.hasPermission(attachmentPermissionTypes, null, whyDoWeHave2Users));
          }
      

              Assignee:
              Unassigned
              Reporter:
              Nick Minutello
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: