debian-mirror-gitlab/app/services/members/groups/creator_service.rb
2022-06-21 17:19:12 +05:30

17 lines
355 B
Ruby

# frozen_string_literal: true
module Members
module Groups
class CreatorService < Members::CreatorService
private
def can_create_new_member?
current_user.can?(:admin_group_member, member.group)
end
def can_update_existing_member?
current_user.can?(:update_group_member, member)
end
end
end
end