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
66aaecc7
Commit
66aaecc7
authored
Jul 14, 2021
by
Gary Holtz
Committed by
nmilojevic1
Jul 19, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding changes from review
parent
0cd893d7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
app/policies/project_policy.rb
app/policies/project_policy.rb
+0
-1
spec/requests/api/projects_spec.rb
spec/requests/api/projects_spec.rb
+2
-0
No files found.
app/policies/project_policy.rb
View file @
66aaecc7
...
...
@@ -225,7 +225,6 @@ class ProjectPolicy < BasePolicy
enable
:set_note_created_at
enable
:set_emails_disabled
enable
:set_show_default_award_emojis
enable
:set_squash_option
end
rule
{
can?
(
:guest_access
)
}.
policy
do
...
...
spec/requests/api/projects_spec.rb
View file @
66aaecc7
...
...
@@ -3149,11 +3149,13 @@ RSpec.describe API::Projects do
end
it
'does not update an invalid squash_option'
do
current_squash_option
=
project3
.
reload
.
squash_option
project_param
=
{
squash_option:
"jawn"
}
put
api
(
"/projects/
#{
project3
.
id
}
"
,
user
),
params:
project_param
expect
(
response
).
to
have_gitlab_http_status
(
:bad_request
)
expect
(
project3
.
reload
.
squash_option
).
to
eq
(
current_squash_option
)
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