Added delete option as a tab only if the current user has permissions to delete the

current resource
This commit is contained in:
jvelilla
2015-05-13 15:17:19 -03:00
parent 988f32c6c4
commit 57bf5ad0dc
4 changed files with 57 additions and 7 deletions

View File

@@ -135,6 +135,7 @@ feature -- Access: router
a_router.handle_with_request_methods ("/node/add/{type}", l_node_handler, a_router.methods_get_post)
a_router.handle_with_request_methods ("/node/{id}/edit", l_node_handler, a_router.methods_get_post)
a_router.handle_with_request_methods ("/node/{id}/delete", l_node_handler, a_router.methods_get_post)
a_router.handle_with_request_methods ("/node/{id}", l_node_handler, a_router.methods_get)
-- For now: no REST API handling... a_router.methods_get_put_delete + a_router.methods_get_post)