- Publicity: Public Only All
forums-security-procs.tcl
Forums Security Library
- Location:
- packages/forums/tcl/forums-security-procs.tcl
- Created:
- 2002-05-25
- Author:
- Ben Adida
- CVS Identification:
$Id: forums-security-procs.tcl,v 1.25.2.1 2019/12/27 16:00:17 antoniop Exp $
Procedures in this file
- forum::security::can_admin_forum_p (public, deprecated)
- forum::security::can_moderate_forum_p (public, deprecated)
- forum::security::can_moderate_message_p (public, deprecated)
- forum::security::can_post_forum_p (public)
- forum::security::can_post_message_p (public, deprecated)
- forum::security::can_read_forum_p (public, deprecated)
- forum::security::can_read_message_p (public, deprecated)
- forum::security::permissions (public)
- forum::security::require_admin_forum (public, deprecated)
- forum::security::require_moderate_forum (public)
- forum::security::require_moderate_message (public, deprecated)
- forum::security::require_post_forum (public)
- forum::security::require_post_message (public, deprecated)
- forum::security::require_read_forum (public)
- forum::security::require_read_message (public, deprecated)
Detailed information
forum::security::can_admin_forum_p (public, deprecated)
forum::security::can_admin_forum_p [ -user_id user_id ] \ -forum_id forum_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: admin == moderate!
- Switches:
- -user_id (optional)
- -forum_id (required)
- See Also:
- forum::security::can_moderate_p
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::can_moderate_forum_p (public, deprecated)
forum::security::can_moderate_forum_p [ -user_id user_id ] \ -forum_id forum_id
Deprecated. Invoking this procedure generates a warning.
Deprecated: just another wrapper to permission::permission_p
- Switches:
- -user_id (optional)
- -forum_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::can_moderate_message_p (public, deprecated)
forum::security::can_moderate_message_p [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::can_post_forum_p (public)
forum::security::can_post_forum_p [ -user_id user_id ] \ -forum_id forum_id
- Switches:
- -user_id (optional)
- -forum_id (required)
- Returns:
- 1 if the user can post in the forum, 0 otherwise.
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
forum::security::can_post_message_p (public, deprecated)
forum::security::can_post_message_p [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::can_read_forum_p (public, deprecated)
forum::security::can_read_forum_p [ -user_id user_id ] \ -forum_id forum_id
Deprecated. Invoking this procedure generates a warning.
Deprecated: just another wrapper to permission::permission_p
- Switches:
- -user_id (optional)
- -forum_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::can_read_message_p (public, deprecated)
forum::security::can_read_message_p [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::permissions (public)
forum::security::permissions -forum_id forum_id [ -user_id user_id ] \ array_name
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):
- Testcases:
- web_forums_message_and_reply
forum::security::require_admin_forum (public, deprecated)
forum::security::require_admin_forum [ -user_id user_id ] \ -forum_id forum_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: admin == moderate!
- Switches:
- -user_id (optional)
- -forum_id (required)
- See Also:
- forum::security::can_moderate_p
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::require_moderate_forum (public)
forum::security::require_moderate_forum [ -user_id user_id ] \ -forum_id forum_id
Abort if the user doesn't have 'forum_moderate' permissions in the forum.
- Switches:
- -user_id (optional)
- -forum_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
forum::security::require_moderate_message (public, deprecated)
forum::security::require_moderate_message [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::require_post_forum (public)
forum::security::require_post_forum [ -user_id user_id ] \ -forum_id forum_id
Abort if the user doesn't have permissions to post in the forum.
- Switches:
- -user_id (optional)
- -forum_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
forum::security::require_post_message (public, deprecated)
forum::security::require_post_message [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
forum::security::require_read_forum (public)
forum::security::require_read_forum [ -user_id user_id ] \ -forum_id forum_id
Abort if the user doesn't have 'read' permissions in the forum.
- Switches:
- -user_id (optional)
- -forum_id (required)
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- web_forums_message_and_reply
forum::security::require_read_message (public, deprecated)
forum::security::require_read_message [ -user_id user_id ] \ -message_id message_id
Deprecated. Invoking this procedure generates a warning.
DEPRECATED: permissions will now be checked on the forum itself
- Switches:
- -user_id (optional)
- -message_id (required)
- See Also:
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.