code: public function getAllowedArchives()
  	{
  		if ($this->User->isAdmin)
  		{
  			$objArchive = Contao\NewsArchiveModel::findAll();
  		}
  		else
  		{
  			$objArchive = Contao\NewsArchiveModel::findMultipleByIds($this->User->news);
  		}
  
  		$return = array();
  
  		if ($objArchive !== null)
  		{
  			while ($objArchive->next())
  			{
  				$return[$objArchive->id] = $objArchive->title;
  			}
  		}
  
  		return $return;
  	}
docs: Return the IDs of the allowed news archives as array
  
  @return array