Sha256: a48e1406e88ceb193cf2c6185584a7b940fc9ea66de082fa99942375747b76dc

Contents?: true

Size: 471 Bytes

Versions: 3

Compression:

Stored size: 471 Bytes

Contents

<% if policy(f.object).policies? %>
  <h2>
    Access control
  </h2>
  <p>
    <% if f.object.kind_of?(User) && f.object != current_user %>
      <%= f.check_box :activated %> The user account is activated<br />
    <% end %>
    <% Role.roles.each do |role| %>
      <%= check_box_tag "#{model_name_from_record_or_class(f.object).param_key}[role_names][]", role.name, f.object.role?(role.name.to_sym) %>
      <%= role.description %><br>
    <% end %>
  </p>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pages_core-3.4.3 app/views/admin/users/_access_control.html.erb
pages_core-3.5.1 app/views/admin/users/_access_control.html.erb
pages_core-3.4.2 app/views/admin/users/_access_control.html.erb