Fix syntax error with method name

This commit is contained in:
Justin Edmund 2023-08-24 22:22:07 -07:00
parent 84db218686
commit 6a55279c35

View file

@ -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