Fix syntax error with method name
This commit is contained in:
parent
84db218686
commit
6a55279c35
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue