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