Skip to content

Commit

Permalink
Bug #3897. Integrate by hand the change from the 5.10.x done to fix t…
Browse files Browse the repository at this point in the history
…he bug
  • Loading branch information
mmoqui committed Nov 7, 2012
1 parent 4310216 commit a9240cf
Showing 1 changed file with 2 additions and 16 deletions.
Expand Up @@ -2309,23 +2309,9 @@ public String initUPToSelectValidator(String pubId) throws RemoteException {
NodeDetail node = getNodeHeader(getCurrentFolderId());
boolean haveRights = isRightsOnTopicsEnabled() && node.haveRights();
if (haveRights) {
int rightsDependsOn = node.getRightsDependsOn();
List<ProfileInst> profileInsts =
getAdmin().getProfilesByObject(Integer.toString(rightsDependsOn),
ObjectType.NODE.getCode(),
getComponentId());
if (profileInsts != null) {
for (ProfileInst profileInst : profileInsts) {
if (profileInst != null) {
if (profiles.contains(profileInst.getName())) {
sug.addProfileId(profileInst.getId());
}
}
}
}
} else {
sug.setProfileNames((ArrayList<String>) profiles);
sug.setObjectId(ObjectType.NODE.getCode() + node.getRightsDependsOn());
}
sug.setProfileNames((ArrayList<String>) profiles);

sel.setExtraParams(sug);

Expand Down

0 comments on commit a9240cf

Please sign in to comment.