We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents dbe8e27 + ce225dd commit 5b62588Copy full SHA for 5b62588
1 file changed
app/controllers/categories_controller.rb
@@ -5,7 +5,7 @@ class CategoriesController < ApplicationController
5
before_action :verify_view_access, except: [:index, :homepage, :new, :create, :post_types]
6
7
def index
8
- @categories = Category.all.order(sequence: :asc, id: :asc)
+ @categories = Category.accessible_to(current_user).all.order(sequence: :asc, id: :asc)
9
respond_to do |format|
10
format.html
11
format.json do
0 commit comments