Details
-
Bug
-
Status: Closed
-
Normal
-
Resolution: Done
-
1.13.03
Description
Method HstContext.isDeleteAllowed calls equals with wrong parameter. The parameter type is HstModelContext, equals expects type JcrNodeModel.
It is:
public boolean isDeleteAllowed(JcrNodeModel model) {
for (HstModelContext m : models)
}
return true;
}
It should be:
public boolean isDeleteAllowed(JcrNodeModel model) {
for (HstModelContext m : models) {
if (model.equals(m.getModel()))
}
return true;
}