*/
public boolean canApprove() {
User approver = _cycle.getActor(ValidationStep.APPROVAL); // May be null if not approvable
- return (_user.equals(approver))
+ return (_user.equals(approver) || _isauthor)
&& getStudyService().canBeApproved(_operand);
}
return res;
}
+
+ /**
+ * Checks if the user has right to rename a scenario of the study.
+ *
+ * @return true if user in an author, contributor or a validation cycle member of the study.
+ */
+ public boolean canRenameScenario() {
+ return _isauthor || getStudyService().hasActor(_operand, _user);
+ }
// ==============================================================================================================================
// Getter