diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 09:12:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-09 09:12:08 +0300 |
commit | 06af519348e7254062a7d03ef3e421356ff8c64a (patch) | |
tree | 30873ad43170e6c8b3eadc778a63c08a1ac3231c /lib/gitlab/slash_commands | |
parent | 44a883b53a586ff5966adce0aacfaa9d31e80441 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'lib/gitlab/slash_commands')
-rw-r--r-- | lib/gitlab/slash_commands/incident_management/incident_new.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/slash_commands/incident_management/incident_new.rb b/lib/gitlab/slash_commands/incident_management/incident_new.rb index 722fcff151d..ce91edfd51a 100644 --- a/lib/gitlab/slash_commands/incident_management/incident_new.rb +++ b/lib/gitlab/slash_commands/incident_management/incident_new.rb @@ -8,8 +8,8 @@ module Gitlab 'incident declare' end - def self.allowed?(project, user) - Feature.enabled?(:incident_declare_slash_command, user) && can?(user, :create_incident, project) + def self.allowed?(_project, _user) + Feature.enabled?(:incident_declare_slash_command) end def self.match(text) |