<%# (C) COPYRIGHT HELP/SYSTEMS, L.L.C. 2009 %> <% havent_change_authority = ["Audits", "Dashboards", "Log_Manager", "ScheduleActivityMonitor"] %> <% secured_areas = Helpsystems::Security.translated_secured_areas %> <% secured_areas.each do |translated_secured_area, secured_area| %> <%# if Helpsystems::Security.record_level_model_name(secured_area).nil? %> <% if Helpsystems::Security.object_level?(secured_area) %> <% unless @role.nil? %> <% change_authority = @role.has_change_authority_to?(secured_area) %> <% view_authority = @role.has_view_authority_to?(secured_area) %> <% exclude_authority = @role.has_exclude_authority_to?(secured_area) %> <% unless change_authority || view_authority %> <% exclude_authority = true %> <% end %> <% else %> <% change_authority = false %> <% view_authority = false %> <% exclude_authority = true %> <% end %> <% end %> <% end %>
<%= t'.secured_area_header' %> <%= t'.change_header' %> <%= t'.view_header' %> <%= t'.exclude_header' %>
<%= translated_secured_area %> <%# to be exchange %> <% unless havent_change_authority.include? secured_area.to_s %> <%= radio_button_tag("#{secured_area}_obj_permission", "change_#{secured_area}", change_authority, {:disabled => @view_only}) %> <% end %> <%= radio_button_tag("#{secured_area}_obj_permission", "view_#{secured_area}", view_authority, {:disabled => @view_only}) %> <%= radio_button_tag("#{secured_area}_obj_permission", "exclude_#{secured_area}", exclude_authority, {:disabled => @view_only}) %>