diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 08:21:48 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-04-29 08:22:13 +0000 |
commit | 6c85cb2ff17cf4ea34372e84ef579734fd607cec (patch) | |
tree | 849664d342d73d66233b4bf0b281bfa10acbb180 /app/services | |
parent | 4c4f653296e104566d2dd9a330b460c7ddc8cfc5 (diff) | |
download | gitlab-ce-6c85cb2ff17cf4ea34372e84ef579734fd607cec.tar.gz |
Add latest changes from gitlab-org/security/gitlab@14-10-stable-ee
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/todo_service.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/app/services/todo_service.rb b/app/services/todo_service.rb index 64309c7f786..14cf264cc51 100644 --- a/app/services/todo_service.rb +++ b/app/services/todo_service.rb @@ -369,8 +369,6 @@ class TodoService end def reject_users_without_access(users, parent, target) - target = target.noteable if target.is_a?(Note) - if target.respond_to?(:to_ability_name) select_users(users, :"read_#{target.to_ability_name}", target) else |