app/views/caboose/users/admin_edit_roles.html.erb in caboose-cms-0.9.229 vs app/views/caboose/users/admin_edit_roles.html.erb in caboose-cms-1.0.1

- old
+ new

@@ -4,10 +4,9 @@ <h3 style="margin:0 0 10px 0;">Roles</h3> <div id='roles'> <table class='data'> <% Caboose::Role.flat_tree(@site.id).each do |r| %> -<% next if !@logged_in_user.is_allowed('all','all') && (r.name == 'Admin' || r.name == 'Everyone Logged Out' || r.name == '-Everyone Logged In') %> <% is_member = Caboose::RoleMembership.where(:role_id => r.id, :user_id => @edituser.id).exists? %> <tr><td><input type='checkbox' name='role<%= r.id %>' <%= is_member ? "checked='true'" : '' %> onclick="toggle_role(<%= @edituser.id %>, <%= r.id %>, $(this).prop('checked'));" /></td><td><%= r.name %></td></tr> <% end %> </table> </div>