Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
4934c709
Commit
4934c709
authored
Jun 07, 2017
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Expose human group access on GroupEntity
parent
e56556e1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
app/serializers/group_entity.rb
app/serializers/group_entity.rb
+2
-2
No files found.
app/serializers/group_entity.rb
View file @
4934c709
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment