[ { "resource": "cb_enable", "description": "check box that enables/disables to add replies to a comment", "role2permissions": [ { "role": "viewer", "permission": "R", "condition": "{{resource_owner_id}} == {{session_user_id}}" }, { "role": "editor", "permission": "RU", "condition": "{{resource_owner_id}} == {{session_user_id}}" }, { "role": "admin", "permission": "CRUD" } ] }, { "resource": "trash_button", "description": "button to trash a comment", "role2permissions": [ { "role": "admin", "permission": "CRUD" } ] }, { "resource": "comment_edit", "description": "button to allow comment to be made editable", "role2permissions": [ { "role": "editor", "permission": "RU", "condition": "{{resource_owner_id}} == {{session_user_id}}" }, { "role": "admin", "permission": "CRUD" } ] } ]