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

Fixed Minor PHPDoc Bug

Discussion in 'Resolved Bug Reports' started by ragtek, Mar 8, 2012.

  1. ragtek

    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^^)
     
  2. Mike

    Mike XenForo Developer Staff Member

    Documentation lies. ;)

    Fixed.
     

Share This Page