diff --git a/app/controllers/visitors_controller.rb b/app/controllers/visitors_controller.rb index fbf8810c..095f0ccf 100644 --- a/app/controllers/visitors_controller.rb +++ b/app/controllers/visitors_controller.rb @@ -3,7 +3,8 @@ class VisitorsController < ApplicationController def index @doodads = authorize policy_scope(Doodad) - @canisters = authorize Canister.all + # todo Canister feature + # @canisters = authorize Canister.all @feed_items = current_user.feed.paginate(page: params[:page]) end diff --git a/app/policies/canister_policy.rb b/app/policies/canister_policy.rb index c0a87057..460ca11a 100644 --- a/app/policies/canister_policy.rb +++ b/app/policies/canister_policy.rb @@ -27,7 +27,7 @@ class CanisterPolicy def index? - @current_user.admin? || true + @current_user.admin? end def show? @@ -35,11 +35,12 @@ class CanisterPolicy end def create? - @current_user.admin? || true + @current_user.admin? end def new? - @current_user.present? + # @current_user.present? + @current_user.admin? end def edit? diff --git a/app/views/layouts/_navigation_links.html.erb b/app/views/layouts/_navigation_links.html.erb index d03457e6..f1993ebd 100644 --- a/app/views/layouts/_navigation_links.html.erb +++ b/app/views/layouts/_navigation_links.html.erb @@ -8,7 +8,9 @@