getAuthorIdsForUser() public méthode

Get all of the authors available for this user to post under
public getAuthorIdsForUser ( integer $userid ) : array
$userid integer
Résultat array
Exemple #1
0
 /**
  * Permissions check
  *
  * @return bool
  */
 protected function permCheck() : bool
 {
     if ($this->isSuperUser()) {
         return true;
     }
     $authorsForUser = $this->author->getAuthorIdsForUser($this->getActiveUserId());
     // Check
     if (!\in_array($this->authorId, $authorsForUser)) {
         return false;
     }
     return true;
 }