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
b81e7c52
Commit
b81e7c52
authored
Feb 25, 2019
by
Heinrich Lee Yu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable `:read_list` when `:read_group` is enabled
parent
99218353
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
+9
-2
app/policies/group_policy.rb
app/policies/group_policy.rb
+1
-0
changelogs/unreleased/58149-fix-read-list-board-policy.yml
changelogs/unreleased/58149-fix-read-list-board-policy.yml
+6
-0
spec/policies/group_policy_spec.rb
spec/policies/group_policy_spec.rb
+2
-2
No files found.
app/policies/group_policy.rb
View file @
b81e7c52
...
...
@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy
rule
{
has_projects
}.
policy
do
enable
:read_group
enable
:read_list
enable
:read_label
end
...
...
changelogs/unreleased/58149-fix-read-list-board-policy.yml
0 → 100644
View file @
b81e7c52
---
title
:
Fix error when viewing group issue boards when user doesn't have explicit group
permissions
merge_request
:
25524
author
:
type
:
fixed
spec/policies/group_policy_spec.rb
View file @
b81e7c52
...
...
@@ -83,7 +83,7 @@ describe GroupPolicy do
end
it
do
expect_allowed
(
:read_group
,
:read_label
)
expect_allowed
(
:read_group
,
:read_l
ist
,
:read_l
abel
)
end
context
'in subgroups'
,
:nested_groups
do
...
...
@@ -91,7 +91,7 @@ describe GroupPolicy do
let
(
:project
)
{
create
(
:project
,
namespace:
subgroup
)
}
it
do
expect_allowed
(
:read_group
,
:read_label
)
expect_allowed
(
:read_group
,
:read_l
ist
,
:read_l
abel
)
end
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