diff options
Diffstat (limited to 'lib/gitlab/chat_commands/issue_command.rb')
-rw-r--r-- | lib/gitlab/chat_commands/issue_command.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/gitlab/chat_commands/issue_command.rb b/lib/gitlab/chat_commands/issue_command.rb index f1bc36239d5..84de3e44c70 100644 --- a/lib/gitlab/chat_commands/issue_command.rb +++ b/lib/gitlab/chat_commands/issue_command.rb @@ -6,11 +6,7 @@ module Gitlab end def collection - project.issues - end - - def readable?(issue) - self.class.can?(current_user, :read_issue, issue) + IssuesFinder.new(current_user, project_id: project.id).execute end end end |