<%= content_tag :div, class: "pagination pagination-centered" do %>
<%= paginate(@memorabilias) %>
-
- <%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_memorabilia_path(id: @venue_management.id), class: "btn btn-primary" %>
-
+ <% if can_edit_or_delete?(@venue_management) %>
+
+ <%= link_to content_tag(:i, nil, class: "icons-plus") + " " + t(:add), new_admin_venue_management_memorabilia_path(id: @venue_management.id), class: "btn btn-primary" %>
+
+ <% end %>
<% end %>
diff --git a/lib/venue_management/engine.rb b/lib/venue_management/engine.rb
index 4ce154f..e2d3f8e 100644
--- a/lib/venue_management/engine.rb
+++ b/lib/venue_management/engine.rb
@@ -12,7 +12,7 @@ module VenueManagement
side_bar do
head_label_i18n 'venue_management.venue_management', icon_class: "icon-globe"
- available_for "managers"
+ available_for "sub_managers"
active_for_controllers (['admin/venue_managements'])
head_link_path "admin_venue_managements_path"
@@ -20,56 +20,56 @@ module VenueManagement
:link_path=>"admin_venue_managements_path" ,
:priority=>1,
:active_for_action=>{'admin/venue_managements'=>'index'},
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'new_',
:link_path=>"new_admin_venue_management_path" ,
:priority=>2,
:active_for_action=>{'admin/venue_managements'=>'new'},
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'categories',
:link_path=>"admin_module_app_categories_path" ,
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'venue_management').id}",
:priority=>3,
:active_for_action=>{'admin/venue_managements'=>'categories'},
:active_for_category => 'VenueManagement',
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'tags',
:link_path=>"admin_module_app_tags_path" ,
:link_arg=>"{:module_app_id=>ModuleApp.find_by(:key=>'venue_management').id}",
:priority=>4,
:active_for_action=>{'admin/venue_managements'=>'tags'},
:active_for_tag => 'VenueManagement',
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_items',
:link_path=>"admin_venue_management_items_path" ,
:priority=>5,
:active_for_action=>{'admin/venue_managements'=>'venue_management_items'},
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_agreements',
:link_path=>"admin_venue_management_agreements_path" ,
:priority=>6,
:active_for_action=>{'admin/venue_managements'=>'venue_management_agreements'},
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_invitings',
:link_path => 'admin_venue_management_invitings_path',
:priority => 7,
:active_for_action => { 'admin/venue_managements' => 'venue_management_invitings' },
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_memorabilias',
:link_path => 'admin_venue_management_memorabilias_path',
:priority => 8,
:active_for_action => { 'admin/venue_managements' => 'venue_management_memorabilias' },
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_bills',
:link_path => 'admin_venue_management_bills_path',
:priority => 8,
:active_for_action => { 'admin/venue_managements' => 'venue_management_bills' },
- :available_for => 'managers'
+ :available_for => 'sub_managers'
context_link 'venue_management.set_venue_management_contracts',
:link_path => 'admin_venue_management_contracts_path',
:priority => 9,
:active_for_action => { 'admin/venue_managements' => 'venue_management_contracts' },
- :available_for => 'managers'
+ :available_for => 'sub_managers'
end
end
end