fs_children_have_permission_p (private)

 fs_children_have_permission_p [ -user_id user_id ] item_id privilege

Defined in packages/file-storage/tcl/file-storage-procs.tcl

This procedure, given a content item and a privilege, checks to see if there are any children of the item on which the user does not have that privilege.

Switches:
-user_id (optional)
Parameters:
item_id (required)
privilege (required)
Returns:
0 if there is any child item on which the user does not have the privilege. It returns 1 if the user has the privilege on every child item.

Partial Call Graph (max 5 caller/called nodes):
%3 packages/file-storage/www/folder-delete.tcl packages/file-storage/ www/folder-delete.tcl fs_children_have_permission_p fs_children_have_permission_p packages/file-storage/www/folder-delete.tcl->fs_children_have_permission_p ad_conn ad_conn (public) fs_children_have_permission_p->ad_conn db_string db_string (public) fs_children_have_permission_p->db_string

Testcases:
No testcase defined.
[ show source ]
Show another procedure: