diff options
author | Rémy Coutable <remy@rymai.me> | 2019-02-04 20:42:53 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2019-02-04 20:42:53 +0300 |
commit | 4e7dd94d785c201ddb5a3247293fadf174158f9d (patch) | |
tree | 1f4b9391d89830a80d3a566423908bc1ab8d9d4d /app/services/groups | |
parent | 7ffbfeb1f79b18b6a3a42e73d12b9680e3e3eb48 (diff) |
Reduce diff with EE in Groups::UpdateService
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'app/services/groups')
-rw-r--r-- | app/services/groups/update_service.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/services/groups/update_service.rb b/app/services/groups/update_service.rb index de78a3f7b27..9ff1da270e2 100644 --- a/app/services/groups/update_service.rb +++ b/app/services/groups/update_service.rb @@ -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 |