diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-03 09:09:43 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-03 09:09:43 +0000 |
commit | 10d4625ed3b73f73bc67bf7d35347dcd1912cf7b (patch) | |
tree | ee42f413ec64e2a60550d741e8428615ecafb393 /app/services | |
parent | f743b4205666c85465eb6c6b0487414e6ec331da (diff) | |
download | gitlab-ce-10d4625ed3b73f73bc67bf7d35347dcd1912cf7b.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/concerns/users/participable_service.rb | 2 | ||||
-rw-r--r-- | app/services/projects/autocomplete_service.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/app/services/concerns/users/participable_service.rb b/app/services/concerns/users/participable_service.rb index c1c93aa604e..281b2508090 100644 --- a/app/services/concerns/users/participable_service.rb +++ b/app/services/concerns/users/participable_service.rb @@ -32,6 +32,8 @@ module Users end def groups + return [] unless current_user + current_user.authorized_groups.with_route.sort_by(&:path) end diff --git a/app/services/projects/autocomplete_service.rb b/app/services/projects/autocomplete_service.rb index e6b1b33a82a..4b4981fde99 100644 --- a/app/services/projects/autocomplete_service.rb +++ b/app/services/projects/autocomplete_service.rb @@ -24,7 +24,7 @@ module Projects end def commands(noteable, type) - return [] unless noteable + return [] unless noteable && current_user QuickActions::InterpretService.new(project, current_user).available_commands(noteable) end |