If user tries to invite themselves to project, don't.
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user