From 6a55279c3592e88a2e0d2911e1905b081dfc23ab Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Thu, 24 Aug 2023 22:22:07 -0700 Subject: [PATCH] Fix syntax error with method name --- app/controllers/api/v1/parties_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/api/v1/parties_controller.rb b/app/controllers/api/v1/parties_controller.rb index 32d7660..b80e0c9 100644 --- a/app/controllers/api/v1/parties_controller.rb +++ b/app/controllers/api/v1/parties_controller.rb @@ -33,7 +33,7 @@ module Api def show # If a party is private, check that the user is the owner or an admin - return render_unauthorized_response if !current_user || (@party.private && not_owner && !admin_mode) + return render_unauthorized_response if !current_user || (@party.private? && not_owner && !admin_mode) return render json: PartyBlueprint.render(@party, view: :full, root: :party) if @party