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
6095de47
Commit
6095de47
authored
Dec 18, 2018
by
GitLab Bot
Browse files
Options
Browse Files
Download
Plain Diff
Automatic merge of gitlab-org/gitlab-ce master
parents
32563183
a3049115
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
app/services/groups/update_service.rb
app/services/groups/update_service.rb
+1
-1
app/services/merge_requests/update_service.rb
app/services/merge_requests/update_service.rb
+5
-4
app/services/users/update_service.rb
app/services/users/update_service.rb
+6
-4
No files found.
app/services/groups/update_service.rb
View file @
6095de47
...
...
@@ -41,7 +41,7 @@ module Groups
end
def
reject_parent_id!
params
.
except!
(
:parent_id
)
params
.
delete
(
:parent_id
)
end
def
valid_share_with_group_lock_change?
...
...
app/services/merge_requests/update_service.rb
View file @
6095de47
...
...
@@ -7,14 +7,15 @@ module MergeRequests
def
execute
(
merge_request
)
# We don't allow change of source/target projects and source branch
# after merge request was created
params
.
except!
(
:source_project_id
)
params
.
except!
(
:target_project_id
)
params
.
except!
(
:source_branch
)
params
.
delete
(
:source_project_id
)
params
.
delete
(
:target_project_id
)
params
.
delete
(
:source_branch
)
merge_from_quick_action
(
merge_request
)
if
params
[
:merge
]
if
merge_request
.
closed_without_fork?
params
.
except!
(
:target_branch
,
:force_remove_source_branch
)
params
.
delete
(
:target_branch
)
params
.
delete
(
:force_remove_source_branch
)
end
if
params
[
:force_remove_source_branch
].
present?
...
...
app/services/users/update_service.rb
View file @
6095de47
...
...
@@ -15,7 +15,7 @@ module Users
user_exists
=
@user
.
persisted?
assign_attributes
(
&
block
)
assign_attributes
if
@user
.
save
(
validate:
validate
)
&&
update_status
notify_success
(
user_exists
)
...
...
@@ -47,9 +47,11 @@ module Users
success
end
def
assign_attributes
(
&
block
)
if
@user
.
user_synced_attributes_metadata
params
.
except!
(
*
@user
.
user_synced_attributes_metadata
.
read_only_attributes
)
def
assign_attributes
if
(
metadata
=
@user
.
user_synced_attributes_metadata
)
read_only
=
metadata
.
read_only_attributes
params
.
reject!
{
|
key
,
_
|
read_only
.
include?
(
key
.
to_sym
)
}
end
@user
.
assign_attributes
(
params
)
if
params
.
any?
...
...
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