• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed Minor PHPDoc Bug

R

ragtek

Guest
#1
In XenForo_Model_Thread
PHP:
/**
* Checks whether a user can view moderated attachments in a thread
*
* @param array $thread
* @param array $forum
* @param string $errorPhraseKey
* @param array $nodePermissions
* @param array $viewingUser
*
* @return boolean
*/
public function canViewAttachmentsInThread(array $thread, array $forum, &$errorPhraseKey = '', array $nodePermissions = null, array $viewingUser = null)
{
$this->standardizeViewingUserReferenceForNode($thread['node_id'], $viewingUser, $nodePermissions);
 
return XenForo_Permission::hasContentPermission($nodePermissions, 'viewAttachment');
}
This isn't for moderated attachments as described in the doc(don't know if it's even possible to have moderated attachments^^)