diff --git a/app/controllers/admin/text_marquees_controller.rb b/app/controllers/admin/text_marquees_controller.rb index 568f163..018bcb7 100644 --- a/app/controllers/admin/text_marquees_controller.rb +++ b/app/controllers/admin/text_marquees_controller.rb @@ -1,9 +1,10 @@ class Admin::TextMarqueesController < OrbitAdminController def index @tags = @module_app.tags + uac = @module_app.categories.enabled.authorized(current_user) if @user_authorized_categories.nil? categories = @module_app.categories.enabled @filter_fields = filter_fields(categories, @tags) - @categories = categories.collect{|c|[c.title, c.id]} + @categories = uac.collect{|c|[c.title, c.id]} @table_fields = [:title, :category] @marquees = Marquee.where(:title.ne => "") .order_by(sort) diff --git a/app/views/admin/text_marquees/_text.html.erb b/app/views/admin/text_marquees/_text.html.erb index c2c6229..ad15546 100644 --- a/app/views/admin/text_marquees/_text.html.erb +++ b/app/views/admin/text_marquees/_text.html.erb @@ -3,7 +3,7 @@ <%= text.title %>