Project

General

Profile

« Previous | Next » 

Revision 4e6d2262

Added by Marek Hulán over 7 years ago

Fixes #16739 - unify parameters permissions

View differences:

app/views/common_parameters/index.html.erb
</thead>
<tbody>
<% for common_parameter in @common_parameters %>
<tr>
<td class="display-two-pane ellipsis"><%= link_to_if_authorized common_parameter, hash_for_edit_common_parameter_path(:id => common_parameter).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'edit_globals') %></td>
<tr id="<%= dom_id(common_parameter) %>_row">
<td class="display-two-pane ellipsis"><%= link_to_if_authorized common_parameter, hash_for_edit_common_parameter_path(:id => common_parameter).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'edit_params') %></td>
<td class='ellipsis'><%= common_parameter.safe_value %></td>
<td>
<%= action_buttons(display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'destroy_globals'),
<%= action_buttons(display_delete_if_authorized hash_for_common_parameter_path(:id => common_parameter).merge(:auth_object => common_parameter, :authorizer => authorizer, :permission => 'destroy_params'),
:data => { :confirm => _("Delete %s?") % common_parameter.name } ) %>
</td>
</tr>

Also available in: Unified diff