summaryrefslogtreecommitdiff
path: root/app/views/groups/edit.html.haml
diff options
context:
space:
mode:
authorMichael Kozono <mkozono@gmail.com>2017-09-05 12:43:48 -0700
committerMichael Kozono <mkozono@gmail.com>2017-09-06 12:07:20 -0700
commitedf8dd44f7676d14fda5ce305c2c3e31b8c14c17 (patch)
treee4ca7a32c803deb20477936f80e29cb8186d326c /app/views/groups/edit.html.haml
parentc7e17abd269e31a59c41687459eea6382475ab95 (diff)
downloadgitlab-ce-edf8dd44f7676d14fda5ce305c2c3e31b8c14c17.tar.gz
Simplify disabling checkbox
Diffstat (limited to 'app/views/groups/edit.html.haml')
-rw-r--r--app/views/groups/edit.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/groups/edit.html.haml b/app/views/groups/edit.html.haml
index 38d39c29acf..bd8c4b5954a 100644
--- a/app/views/groups/edit.html.haml
+++ b/app/views/groups/edit.html.haml
@@ -34,7 +34,7 @@
.col-sm-10
.checkbox
= f.label :share_with_group_lock do
- = f.check_box :share_with_group_lock, disabled: share_with_group_lock_disabled
+ = f.check_box :share_with_group_lock, disabled: !can_change_share_with_group_lock?(@group)
%strong
- group_link = link_to @group.name, group_path(@group)
= s_("GroupSettings|Prevent sharing a project within %{group} with other groups").html_safe % { group: group_link }