administrator/components/com_categories/controllers/category.php
protected function allowAdd($data = array())
	{
		$user = JFactory::getUser();

		return ($user->authorise('core.create', $this->extension) || count($user->getAuthorisedCategories($this->extension, 'core.create')));
	}
protected function allowAdd($data = array())
	{
		$user = JFactory::getUser();

		return ($user->authorise('core.create', $this->extension) || count($user->getAuthorisedCategories($this->extension, 'core.create')));
	}
protected function allowAdd ( $ data = array ( ) ) { $ user = JFactory :: getUser ( ) ; return ( $ user -> authorise ( 'core.create' , $ this -> extension ) || count ( $ user -> getAuthorisedCategories ( $ this -> extension , 'core.create' ) ) ) ; }
Method to check if you can add a new record.

@param   array  $data  An array of input data.

@return  boolean

@since   1.6
Method to check if you can add a new record .