diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-09 18:09:13 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-08-09 18:09:13 +0300 |
commit | 9c39a0a9b81f06f6345a6b6e071b8e8cd249c064 (patch) | |
tree | 45caaf45fac61866d8cc9098487a78b17c1016a0 /app/models/member.rb | |
parent | 53af44b90f87cdd8d7126d64669848b0e2be5960 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/models/member.rb')
-rw-r--r-- | app/models/member.rb | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/app/models/member.rb b/app/models/member.rb index 0a0f4b1e273..e003a5d15db 100644 --- a/app/models/member.rb +++ b/app/models/member.rb @@ -393,11 +393,6 @@ class Member < ApplicationRecord # error or not doing any meaningful work. # rubocop: disable CodeReuse/ServiceClass def refresh_member_authorized_projects - # If user/source is being destroyed, project access are going to be - # destroyed eventually because of DB foreign keys, so we shouldn't bother - # with refreshing after each member is destroyed through association - return if destroyed_by_association.present? - UserProjectAccessChangedService.new(user_id).execute end # rubocop: enable CodeReuse/ServiceClass |