Commit 4934c709 authored by Douwe Maan's avatar Douwe Maan

Expose human group access on GroupEntity

parent e56556e1
......@@ -11,8 +11,8 @@ class GroupEntity < Grape::Entity
expose :created_at, :updated_at
expose :permissions do
expose :group_access do |group, options|
group.group_members.find_by(user_id: request.current_user)&.access_level
expose :human_group_access do |group, options|
group.group_members.find_by(user_id: request.current_user)&.human_access
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment