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
bfe77277
Commit
bfe77277
authored
Nov 13, 2017
by
Jarka Kadlecova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Raise exception if group not found/not readable by a user
parent
4b522a89
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ee/app/finders/epics_finder.rb
ee/app/finders/epics_finder.rb
+1
-2
ee/app/policies/ee/group_policy.rb
ee/app/policies/ee/group_policy.rb
+4
-1
No files found.
ee/app/finders/epics_finder.rb
View file @
bfe77277
...
...
@@ -4,8 +4,7 @@ class EpicsFinder < IssuableFinder
end
def
execute
raise
ArgumentError
,
'group_id argument is missing'
unless
params
[
:group_id
]
return
[]
unless
group
raise
ArgumentError
,
'group_id argument is missing'
unless
group
items
=
init_collection
items
=
by_created_at
(
items
)
...
...
ee/app/policies/ee/group_policy.rb
View file @
bfe77277
...
...
@@ -30,7 +30,10 @@ module EE
enable
:destroy_epic
end
rule
{
auditor
}.
enable
:read_group
rule
{
auditor
}.
policy
do
enable
:read_group
enable
:read_epic
end
rule
{
admin
}.
enable
:read_epic
rule
{
has_projects
}.
enable
:read_epic
...
...
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