BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
e4391c71
Commit
e4391c71
authored
Jul 21, 2017
by
Nick Thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Backport changes from
https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2328
parent
2209426f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
application_settings_controller.rb
app/controllers/admin/application_settings_controller.rb
+2
-2
application_controller.rb
app/controllers/projects/application_controller.rb
+1
-0
projects_controller.rb
app/controllers/projects_controller.rb
+2
-2
No files found.
app/controllers/admin/application_settings_controller.rb
View file @
e4391c71
...
@@ -76,11 +76,11 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
...
@@ -76,11 +76,11 @@ class Admin::ApplicationSettingsController < Admin::ApplicationController
params
.
delete
(
:domain_blacklist_raw
)
if
params
[
:domain_blacklist_file
]
params
.
delete
(
:domain_blacklist_raw
)
if
params
[
:domain_blacklist_file
]
params
.
require
(
:application_setting
).
permit
(
params
.
require
(
:application_setting
).
permit
(
application_setting_params_
ce
application_setting_params_
attributes
)
)
end
end
def
application_setting_params_
ce
def
application_setting_params_
attributes
[
[
:admin_notification_email
,
:admin_notification_email
,
:after_sign_out_path
,
:after_sign_out_path
,
...
...
app/controllers/projects/application_controller.rb
View file @
e4391c71
...
@@ -22,6 +22,7 @@ class Projects::ApplicationController < ApplicationController
...
@@ -22,6 +22,7 @@ class Projects::ApplicationController < ApplicationController
def
project
def
project
return
@project
if
@project
return
@project
if
@project
return
nil
unless
params
[
:project_id
]
||
params
[
:id
]
path
=
File
.
join
(
params
[
:namespace_id
],
params
[
:project_id
]
||
params
[
:id
])
path
=
File
.
join
(
params
[
:namespace_id
],
params
[
:project_id
]
||
params
[
:id
])
auth_proc
=
->
(
project
)
{
!
project
.
pending_delete?
}
auth_proc
=
->
(
project
)
{
!
project
.
pending_delete?
}
...
...
app/controllers/projects_controller.rb
View file @
e4391c71
...
@@ -296,10 +296,10 @@ class ProjectsController < Projects::ApplicationController
...
@@ -296,10 +296,10 @@ class ProjectsController < Projects::ApplicationController
def
project_params
def
project_params
params
.
require
(
:project
)
params
.
require
(
:project
)
.
permit
(
project_params_
ce
)
.
permit
(
project_params_
attributes
)
end
end
def
project_params_
ce
def
project_params_
attributes
[
[
:avatar
,
:avatar
,
:build_allow_git_fetch
,
:build_allow_git_fetch
,
...
...
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