forum::security::permissions (public)

 forum::security::permissions -forum_id forum_id [ -user_id user_id ] \
    array_name

Defined in packages/forums/tcl/forums-security-procs.tcl

Retrieve all relevant forum permissions in a single array of fields {admin_p moderate_p post_p}. admin_p and moderate_p are in fact just synonyms and will have the same value.

Switches:
-forum_id (required)
-user_id (optional)
user to check permissions for. Defaults to currently connected user.
Parameters:
array_name (required)
name of array in the caller namespace that will contain proc results after the call.

Partial Call Graph (max 5 caller/called nodes):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forum::security::permissions forum::security::permissions test_web_forums_message_and_reply->forum::security::permissions ad_conn ad_conn (public) forum::security::permissions->ad_conn forum::security::can_post_forum_p forum::security::can_post_forum_p (public) forum::security::permissions->forum::security::can_post_forum_p permission::permission_p permission::permission_p (public) forum::security::permissions->permission::permission_p packages/forums/www/forum-view.tcl packages/forums/ www/forum-view.tcl packages/forums/www/forum-view.tcl->forum::security::permissions packages/forums/www/message-view.tcl packages/forums/ www/message-view.tcl packages/forums/www/message-view.tcl->forum::security::permissions

Testcases:
web_forums_message_and_reply
[ show source ]
Show another procedure: