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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
4e7dd94d
Commit
4e7dd94d
authored
Feb 04, 2019
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce diff with EE in Groups::UpdateService
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
7ffbfeb1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
app/services/groups/update_service.rb
app/services/groups/update_service.rb
+6
-0
No files found.
app/services/groups/update_service.rb
View file @
4e7dd94d
...
...
@@ -11,6 +11,8 @@ module Groups
return
false
unless
valid_share_with_group_lock_change?
before_assignment_hook
(
group
,
params
)
group
.
assign_attributes
(
params
)
begin
...
...
@@ -28,6 +30,10 @@ module Groups
private
def
before_assignment_hook
(
group
,
params
)
# overriden in EE
end
def
after_update
if
group
.
previous_changes
.
include?
(
:visibility_level
)
&&
group
.
private?
# don't enqueue immediately to prevent todos removal in case of a mistake
...
...
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