Hi everyone,
I’m opening this brainstorming to collect a bit of feedback / opinions about how the comments right interact with the approver role in Change Request.
So right now a user who is an approver of a change request always gain the right to comment on that change request. This is enforced by this method whose javadoc is pretty clear about the behaviour: application-changerequest/ChangeRequestRightsManager.java at application-changerequest-1.5 · xwiki-contrib/application-changerequest · GitHub.
This means that even if a user has a comment right denied, they will be able to comment a change request they are approver of: in global comment, diff comment and review comment.
I’ve implemented it like that because my intuition was that the review process automatically involve being able to comment: it doesn’t make much sense if the approver can only accept or refuse the change. They have to explain what should be improved in case they reject it.
Now I have a bit of a second thought about this behaviour: I’ve been requested to ensure that a user who does not have comment right shouldn’t be able to add a review comment. I even opened Loading... before realizing that this behaviour was actually expected currently.
So I’d like to gather other opinions on this before taking a decision, what do you think should be better: to keep current behaviour, or to always comply with the comment right?
Thanks