Don't fail silently if trying to add a collaborator twice (#4533)

* don't fail silently if trying to add a collaborator twice

* fix translation text

* added collaborator test

* improvee testcases

* Added tests to make sure a collaborator cannot be added twice
This commit is contained in:
Lanre Adelowo 2018-08-07 02:59:42 +01:00 committed by Lunny Xiao
parent 7cb1c1cf20
commit c7a6ee5c0b
3 changed files with 109 additions and 0 deletions

View file

@ -1025,6 +1025,7 @@ settings.transfer_succeed = The repository has been transferred.
settings.confirm_delete = Delete Repository
settings.add_collaborator = Add Collaborator
settings.add_collaborator_success = The collaborator has been added.
settings.add_collaborator_duplicate =The collaborator is already added to this repository.
settings.delete_collaborator = Remove
settings.collaborator_deletion = Remove Collaborator
settings.collaborator_deletion_desc = Removing a collaborator will revoke their access to this repository. Continue?