Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/group_link/group_link_entity.rb')
-rw-r--r--app/serializers/group_link/group_link_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/group_link/group_link_entity.rb b/app/serializers/group_link/group_link_entity.rb
index 73c9931fc70..4cc7e9f3c8c 100644
--- a/app/serializers/group_link/group_link_entity.rb
+++ b/app/serializers/group_link/group_link_entity.rb
@@ -36,7 +36,7 @@ module GroupLink
end
expose :can_remove do |group_link, options|
- can_admin_shared_from?(group_link, options)
+ direct_member?(group_link, options) && can_admin_group_link?(group_link, options)
end
expose :is_direct_member do |group_link, options|