Fixed Minor PHPDoc Bug

  • Thread starter Thread starter ragtek
  • Start date Start date
R

ragtek

Guest
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^^)
 
Top Bottom