I'm looking for a function to check whether the user who has posted (not visitor) is a moderator of the current forum that the post is in.
I've tried XenForo_Model_Moderator::getContentModerator(array(
'user_id' => $user['user_id'],
'content' => array('', $thread['node_id'])
)
however, that returns false unless the user is explicitly a moderator of that forum (i.e. if the user is a moderator of the parent node, it won't show them as a moderator for this forum ID).
Simple question: Is there a built-in XF function that checks if a user is a moderator of the current forum, taking permission inheritance into account?
I've tried XenForo_Model_Moderator::getContentModerator(array(
'user_id' => $user['user_id'],
'content' => array('', $thread['node_id'])
)
however, that returns false unless the user is explicitly a moderator of that forum (i.e. if the user is a moderator of the parent node, it won't show them as a moderator for this forum ID).
Simple question: Is there a built-in XF function that checks if a user is a moderator of the current forum, taking permission inheritance into account?