diff options
Diffstat (limited to 'lib/gitlab/chat_commands/issue_create.rb')
-rw-r--r-- | lib/gitlab/chat_commands/issue_create.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gitlab/chat_commands/issue_create.rb b/lib/gitlab/chat_commands/issue_create.rb index c424e845402..b5cf85b58f1 100644 --- a/lib/gitlab/chat_commands/issue_create.rb +++ b/lib/gitlab/chat_commands/issue_create.rb @@ -6,6 +6,8 @@ module Gitlab end def execute(match) + present nil unless can?(current_user, :create_issue, project) + title = match[:title] description = match[:description] |