• 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

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::security::can_admin_forum_p forum::security::can_admin_forum_p forum::security::can_admin_forum_p->ad_get_tcl_call_stack

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) permission::permission_p permission::permission_p (public) forum::security::can_moderate_forum_p forum::security::can_moderate_forum_p forum::security::can_moderate_forum_p->ad_get_tcl_call_stack forum::security::can_moderate_forum_p->permission::permission_p

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) permission::permission_p permission::permission_p (public) forum::security::can_moderate_message_p forum::security::can_moderate_message_p forum::security::can_moderate_message_p->ad_get_tcl_call_stack forum::security::can_moderate_message_p->forum::message::get forum::security::can_moderate_message_p->permission::permission_p

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):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forum::security::can_post_forum_p forum::security::can_post_forum_p test_web_forums_message_and_reply->forum::security::can_post_forum_p ad_conn ad_conn (public) forum::security::can_post_forum_p->ad_conn forum::get forum::get (public) forum::security::can_post_forum_p->forum::get permission::permission_p permission::permission_p (public) forum::security::can_post_forum_p->permission::permission_p forum::security::can_post_message_p forum::security::can_post_message_p (public, deprecated) forum::security::can_post_message_p->forum::security::can_post_forum_p forum::security::permissions forum::security::permissions (public) forum::security::permissions->forum::security::can_post_forum_p forum::security::require_post_forum forum::security::require_post_forum (public) forum::security::require_post_forum->forum::security::can_post_forum_p packages/forums/www/message-post.tcl packages/forums/ www/message-post.tcl packages/forums/www/message-post.tcl->forum::security::can_post_forum_p

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) forum::security::can_post_forum_p forum::security::can_post_forum_p (public) forum::security::can_post_message_p forum::security::can_post_message_p forum::security::can_post_message_p->ad_get_tcl_call_stack forum::security::can_post_message_p->forum::message::get forum::security::can_post_message_p->forum::security::can_post_forum_p

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) permission::permission_p permission::permission_p (public) forum::security::can_read_forum_p forum::security::can_read_forum_p forum::security::can_read_forum_p->ad_get_tcl_call_stack forum::security::can_read_forum_p->permission::permission_p

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) permission::permission_p permission::permission_p (public) forum::security::can_read_message_p forum::security::can_read_message_p forum::security::can_read_message_p->ad_get_tcl_call_stack forum::security::can_read_message_p->forum::message::get forum::security::can_read_message_p->permission::permission_p

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 - 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

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::security::do_abort forum::security::do_abort (private) permission::permission_p permission::permission_p (public) forum::security::require_admin_forum forum::security::require_admin_forum forum::security::require_admin_forum->ad_get_tcl_call_stack forum::security::require_admin_forum->forum::security::do_abort forum::security::require_admin_forum->permission::permission_p

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):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forum::security::require_moderate_forum forum::security::require_moderate_forum test_web_forums_message_and_reply->forum::security::require_moderate_forum forum::security::do_abort forum::security::do_abort (private) forum::security::require_moderate_forum->forum::security::do_abort permission::permission_p permission::permission_p (public) forum::security::require_moderate_forum->permission::permission_p forum::security::require_moderate_message forum::security::require_moderate_message (public, deprecated) forum::security::require_moderate_message->forum::security::require_moderate_forum packages/forums/www/moderate/forum.tcl packages/forums/ www/moderate/forum.tcl packages/forums/www/moderate/forum.tcl->forum::security::require_moderate_forum packages/forums/www/moderate/message-approve.tcl packages/forums/ www/moderate/message-approve.tcl packages/forums/www/moderate/message-approve.tcl->forum::security::require_moderate_forum packages/forums/www/moderate/message-delete.tcl packages/forums/ www/moderate/message-delete.tcl packages/forums/www/moderate/message-delete.tcl->forum::security::require_moderate_forum packages/forums/www/moderate/message-move.tcl packages/forums/ www/moderate/message-move.tcl packages/forums/www/moderate/message-move.tcl->forum::security::require_moderate_forum

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) forum::security::require_moderate_forum forum::security::require_moderate_forum (public) forum::security::require_moderate_message forum::security::require_moderate_message forum::security::require_moderate_message->ad_get_tcl_call_stack forum::security::require_moderate_message->forum::message::get forum::security::require_moderate_message->forum::security::require_moderate_forum

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):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forum::security::require_post_forum forum::security::require_post_forum test_web_forums_message_and_reply->forum::security::require_post_forum forum::security::can_post_forum_p forum::security::can_post_forum_p (public) forum::security::require_post_forum->forum::security::can_post_forum_p forum::security::do_abort forum::security::do_abort (private) forum::security::require_post_forum->forum::security::do_abort forum::security::require_post_message forum::security::require_post_message (public, deprecated) forum::security::require_post_message->forum::security::require_post_forum packages/forums/www/message-post.tcl packages/forums/ www/message-post.tcl packages/forums/www/message-post.tcl->forum::security::require_post_forum

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) forum::security::require_post_forum forum::security::require_post_forum (public) forum::security::require_post_message forum::security::require_post_message forum::security::require_post_message->ad_get_tcl_call_stack forum::security::require_post_message->forum::message::get forum::security::require_post_message->forum::security::require_post_forum

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):
%3 test_web_forums_message_and_reply web_forums_message_and_reply (test forums) forum::security::require_read_forum forum::security::require_read_forum test_web_forums_message_and_reply->forum::security::require_read_forum forum::security::do_abort forum::security::do_abort (private) forum::security::require_read_forum->forum::security::do_abort permission::permission_p permission::permission_p (public) forum::security::require_read_forum->permission::permission_p forum::security::require_read_message forum::security::require_read_message (public, deprecated) forum::security::require_read_message->forum::security::require_read_forum packages/forums/www/forum-view.tcl packages/forums/ www/forum-view.tcl packages/forums/www/forum-view.tcl->forum::security::require_read_forum packages/forums/www/message-email.tcl packages/forums/ www/message-email.tcl packages/forums/www/message-email.tcl->forum::security::require_read_forum packages/forums/www/message-view.tcl packages/forums/ www/message-view.tcl packages/forums/www/message-view.tcl->forum::security::require_read_forum packages/forums/www/messages-get.tcl packages/forums/ www/messages-get.tcl packages/forums/www/messages-get.tcl->forum::security::require_read_forum

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):
%3 ad_get_tcl_call_stack ad_get_tcl_call_stack (public) forum::message::get forum::message::get (public) forum::security::require_read_forum forum::security::require_read_forum (public) forum::security::require_read_message forum::security::require_read_message forum::security::require_read_message->ad_get_tcl_call_stack forum::security::require_read_message->forum::message::get forum::security::require_read_message->forum::security::require_read_forum

Testcases:
No testcase defined.
[ show source ]