diff --git a/app/controllers/api/v0/guidances_controller.rb b/app/controllers/api/v0/guidances_controller.rb index 679244f..2803ea6 100644 --- a/app/controllers/api/v0/guidances_controller.rb +++ b/app/controllers/api/v0/guidances_controller.rb @@ -23,7 +23,7 @@ def show # ensure use has auth for guidances api if has_auth("guidance") - if Guidance.can_view(@user, params[:id]) + if Guidance.can_view?(@user, params[:id]) respond_with get_resource else render json: I18n.t("api.bad_resource"), status: 401