pundit: convert moderator/dashboard to pundit.
Make it visible to everyone since there's no non-public information here.
This commit is contained in:
@@ -1,7 +1,5 @@
|
|||||||
module Moderator
|
module Moderator
|
||||||
class DashboardsController < ApplicationController
|
class DashboardsController < ApplicationController
|
||||||
before_action :member_only
|
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@dashboard = Moderator::Dashboard::Report.new(**search_params.to_h.symbolize_keys)
|
@dashboard = Moderator::Dashboard::Report.new(**search_params.to_h.symbolize_keys)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user