forum::security::require_read_forum (public)

 forum::security::require_read_forum [ -user_id user_id ] \
    -forum_id forum_id

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

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
Source code:
        # Probably this whole proc could be replaced by just permission::require_permission
        if { ![permission::permission_p -party_id $user_id -object_id $forum_id -privilege "read"] } {
            do_abort
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: