Project

General

Profile

« Previous | Next » 

Revision acfbc458

Added by Marek Hulán about 10 years ago

fixes #812 - new permissions model, user group role and nest support, role filters for better granularity

Contributions from:

View differences:

app/views/puppetclasses/_classes.html.erb
<li><%= link_to_function image_tag("bullet_toggle_plus.png") + " " + list.first, "$('#pc_#{list.first}').fadeToggle('slow')" %>
<ul id="pc_<%= list.first %>" style="display: none;">
<% for klass in list.last.sort %>
<% unless authorized_for(:host_editing, :edit_classes) %>
<% unless authorized_for(:controller => :host_editing, :action => :edit_classes) %>
<li data-original-title="<%= _('Not authorized to edit classes') %>" rel="twipsy"><%= h klass.name %></li>
<% else %>
<% style = selected_puppet_classes.include?(klass) ? "hide" : "" %>

Also available in: Unified diff