summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2019-10-11 00:06:24 +0000
committerGitLab Bot <gitlab-bot@gitlab.com>2019-10-11 00:06:24 +0000
commit133924c6cc443f5f69e1ab08d43b363d77677cb0 (patch)
treee893a7d36105fc4acec7038feae5f03bd34cfc2c /lib
parentf607152a0802a68067343ad73f989033cb8e9a06 (diff)
downloadgitlab-ce-133924c6cc443f5f69e1ab08d43b363d77677cb0.tar.gz
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib')
-rw-r--r--lib/gitlab/slash_commands/presenters/access.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/gitlab/slash_commands/presenters/access.rb b/lib/gitlab/slash_commands/presenters/access.rb
index b1bfaa6cb59..9ce1bcfb37c 100644
--- a/lib/gitlab/slash_commands/presenters/access.rb
+++ b/lib/gitlab/slash_commands/presenters/access.rb
@@ -15,6 +15,15 @@ module Gitlab
MESSAGE
end
+ def deactivated
+ ephemeral_response(text: <<~MESSAGE)
+ You are not allowed to perform the given chatops command since
+ your account has been deactivated by your administrator.
+
+ Please log back in from a web browser to reactivate your account at #{Gitlab.config.gitlab.url}
+ MESSAGE
+ end
+
def not_found
ephemeral_response(text: "404 not found! GitLab couldn't find what you were looking for! :boom:")
end