app/admin/c80_estate/astatuses.rb in c80_estate-0.1.0.7 vs app/admin/c80_estate/astatuses.rb in c80_estate-0.1.0.8
- old
+ new
@@ -1,8 +1,8 @@
# ПОДкатегории строительных материалов
ActiveAdmin.register C80Estate::Astatus, :as => 'Astatus' do
- menu :label => "Статусы", :parent => "Настройки"
+ menu :label => "Статусы", :parent => "Настройки", :if => proc { current_admin_user.can_view_settings? }
permit_params :title
config.sort_order = 'id_asc'
\ No newline at end of file