Commit c7bcd243 authored by Alfredo Sumaran's avatar Alfredo Sumaran

Expose correct path to group

:web_url will expose the full URL to the group making it unreachable on tests since the URL will not have the correct port on it.
parent 2cd68ab8
......@@ -5,11 +5,14 @@ class GroupEntity < Grape::Entity
include GroupsHelper
expose :id, :name, :path, :description, :visibility
expose :web_url
expose :full_name, :full_path
expose :parent_id
expose :created_at, :updated_at
expose :web_url do |group|
group_path(group)
end
expose :permissions do
expose :human_group_access do |group, options|
group.group_members.find_by(user_id: request.current_user)&.human_access
......
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