fix
This commit is contained in:
@ -2,7 +2,7 @@ class ErrorsController < ApplicationController
|
|||||||
before_action :set_execution_environment
|
before_action :set_execution_environment
|
||||||
|
|
||||||
def authorize!
|
def authorize!
|
||||||
authorize(@error || @execution_environment.errors)
|
authorize(@error || @errors)
|
||||||
end
|
end
|
||||||
private :authorize!
|
private :authorize!
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ class ErrorsController < ApplicationController
|
|||||||
private :error_params
|
private :error_params
|
||||||
|
|
||||||
def index
|
def index
|
||||||
authorize!
|
|
||||||
@errors = Error.for_execution_environment(@execution_environment).grouped_by_message
|
@errors = Error.for_execution_environment(@execution_environment).grouped_by_message
|
||||||
|
authorize!
|
||||||
end
|
end
|
||||||
|
|
||||||
def set_execution_environment
|
def set_execution_environment
|
||||||
|
@ -28,7 +28,7 @@ class HintsController < ApplicationController
|
|||||||
private :hint_params
|
private :hint_params
|
||||||
|
|
||||||
def index
|
def index
|
||||||
@execution_environment.hints.order(:name)
|
@hints = @execution_environment.hints.order(:name)
|
||||||
authorize!
|
authorize!
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user