Commit 4d53b657 authored by Winnie Hellmann's avatar Winnie Hellmann Committed by Michael Kozono

Make UpdateService error message translatable

parent 058c04fb
...@@ -30,7 +30,7 @@ module Groups ...@@ -30,7 +30,7 @@ module Groups
return true unless changing_share_with_group_lock? return true unless changing_share_with_group_lock?
return true if can?(current_user, :change_share_with_group_lock, group) return true if can?(current_user, :change_share_with_group_lock, group)
group.errors.add(:share_with_group_lock, 'cannot be disabled when the parent group Share lock is enabled, except by the owner of the parent group') group.errors.add(:share_with_group_lock, s_('GroupSettings|cannot be disabled when the parent group Share with group lock is enabled, except by the owner of the parent group'))
false false
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment