diff --git a/views/profile_editor/edit_software_community.html.erb b/views/profile_editor/edit_software_community.html.erb index 86ec658..acc0bb5 100644 --- a/views/profile_editor/edit_software_community.html.erb +++ b/views/profile_editor/edit_software_community.html.erb @@ -14,7 +14,7 @@ <%= labelled_form_for :profile_data, :html => { :id => 'profile-data', :multipart => true } do |f| %> - <% if user.has_permission?('manage_environment_templates', profile.environment) %> + <% if environment.admins.include?(user) %>