If user tries to invite themselves to project, don't.

This commit is contained in:
Shane Kilkelly
2017-01-16 13:45:01 +00:00
parent 962a4d5039
commit 82ddeab2bd
3 changed files with 36 additions and 0 deletions
@@ -144,6 +144,8 @@ script(type='text/ng-template', id='shareProjectModalTemplate')
span(ng-switch="state.errorReason")
span(ng-switch-when="cannot_invite_non_user")
| #{translate("cannot_invite_non_user")}
span(ng-switch-when="cannot_invite_self")
| #{translate("cannot_invite_self")}
span(ng-switch-default)
| #{translate("generic_something_went_wrong")}
button.btn.btn-default(