|
|
@ -38,7 +38,7 @@ json.operation do
|
|
|
|
|
|
|
|
|
|
|
|
json.can_deletable manageable
|
|
|
|
json.can_deletable manageable
|
|
|
|
json.can_editable manageable
|
|
|
|
json.can_editable manageable
|
|
|
|
json.user_praised PraiseTread.exists?(user_id: current_user&.id)
|
|
|
|
json.user_praised library.praise_treads.exists?(user_id: current_user&.id)
|
|
|
|
else
|
|
|
|
else
|
|
|
|
json.can_deletable false
|
|
|
|
json.can_deletable false
|
|
|
|
json.can_editable false
|
|
|
|
json.can_editable false
|
|
|
|