bm_require_delete_permission (public)

 bm_require_delete_permission bookmark_id

Defined in packages/bookmarks/tcl/bookmarks-procs.tcl

This proc verifyes that the user may delete the bookmark/folder and all its contained bookmarks/folders.

Parameters:
bookmark_id (required)

Partial Call Graph (max 5 caller/called nodes):
%3 packages/bookmarks/www/bookmark-delete-2.tcl packages/bookmarks/ www/bookmark-delete-2.tcl bm_require_delete_permission bm_require_delete_permission packages/bookmarks/www/bookmark-delete-2.tcl->bm_require_delete_permission packages/bookmarks/www/bookmark-delete.tcl packages/bookmarks/ www/bookmark-delete.tcl packages/bookmarks/www/bookmark-delete.tcl->bm_require_delete_permission ad_return_template ad_return_template (public) bm_require_delete_permission->ad_return_template bm_delete_permission_p bm_delete_permission_p (public) bm_require_delete_permission->bm_delete_permission_p

Testcases:
No testcase defined.
Source code:
    if {[bm_delete_permission_p $bookmark_id] == "f"} {
    set n_errors 1
    set error_list [list "You either do not have delete permissions on this bookmark/folder, or you are trying to delete a folder that contains at least one bookmarks or folder that you may not delete"]
    ad_return_template "complaint"
    return -code return
    }
Generic XQL file:
packages/bookmarks/tcl/bookmarks-procs.xql

PostgreSQL XQL file:
packages/bookmarks/tcl/bookmarks-procs-postgresql.xql

Oracle XQL file:
packages/bookmarks/tcl/bookmarks-procs-oracle.xql

[ hide source ] | [ make this the default ]
Show another procedure: