17 lines
355 B
Ruby
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
|