]> SALOME platform Git repositories - tools/siman.git/blobdiff - Workspace/Siman-Common/src/org/splat/som/StudyRights.java
Salome HOME
- Set up-to date functionality is implemented;
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / som / StudyRights.java
index 2eeff0ef1ed66a88f1c7476d461a9ed039b64648..62c0a1e1bb7e90e226892a9993f87b24b1eb64db 100644 (file)
@@ -198,7 +198,7 @@ public class StudyRights {
         */
        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);
        }
 
@@ -284,6 +284,15 @@ public class StudyRights {
 
                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