-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
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));
}