Unclassified NewsBoard Code Reference

UnbCheckRights function

Check if current user has the right to perform a particular action

function UnbCheckRights ($action, $forum = 0, $thread = 0, $user = 0, $date = 0, $isLastPost = false);

Parameters:

action
(string) Right's name
forum  –  optional, default: 0
(int) forum the action applies to
thread  –  optional, default: 0
(int) thread the action applies to
user  –  optional, default: 0
(int) user id (for special use)
date  –  optional, default: 0
(int) timestamp (for special use)
isLastPost  –  optional, default: false
(bool) is this the last post in a thread? (for special use)

Return value:

(bool) access granted or not

Implementation file: unb_lib/common.lib.php, line 3240

© 2006 Yves Goergen. Unclassified NewsBoard Homepage. Reference based on UNB unb.devel.20060128, dated 2006-01-28.