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