forked from forgejo/forgejo
User shouldn't be able to approve or reject his/her own PR (#4729)
* Make sure author cannot reject/approve their own PR * Disable buttons in templates too * Remove unneccessary if check since the switch below catches it * Fix IsOwner check * Update template and remove new template variable * Add alert template and redirect to diff page on review failure * Redirect to files diff as a little update to #4632
This commit is contained in:
parent
fa93857117
commit
6c1a31ffaa
4 changed files with 28 additions and 5 deletions
|
@ -814,6 +814,8 @@ issues.dependency.add_error_dep_not_exist = Dependency does not exist.
|
|||
issues.dependency.add_error_dep_exists = Dependency already exists.
|
||||
issues.dependency.add_error_cannot_create_circular = You cannot create a dependency with two issues blocking each other.
|
||||
issues.dependency.add_error_dep_not_same_repo = Both issues must be in the same repository.
|
||||
issues.review.self.approval = You cannot approve your own pull request.
|
||||
issues.review.self.rejection = You cannot request changes on your own pull request.
|
||||
issues.review.approve = "approved these changes %s"
|
||||
issues.review.comment = "reviewed %s"
|
||||
issues.review.content.empty = You need to leave a comment indicating the requested change(s).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue