Commit c6f2a3d77e1215eb27efc8dac479432dc57305a5
1 parent
5a3746e2
Exists in
master
and in
5 other branches
Show profile is a template only to environment admin
Signed-off-by: Fabio Teixeira <fabio1079@gmail.com> Signed-off-by: Luciano Prestes <lucianopcbr@gmail.com>
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
views/profile_editor/edit_software_community.html.erb
... | ... | @@ -14,7 +14,7 @@ |
14 | 14 | |
15 | 15 | <%= labelled_form_for :profile_data, :html => { :id => 'profile-data', :multipart => true } do |f| %> |
16 | 16 | |
17 | - <% if user.has_permission?('manage_environment_templates', profile.environment) %> | |
17 | + <% if environment.admins.include?(user) %> | |
18 | 18 | <div id="profile-is-template"> |
19 | 19 | <%= labelled_check_box(_('This profile is a template'), 'profile_data[is_template]', true, @profile.is_template) %> |
20 | 20 | </div> | ... | ... |