english/libraries/joomla/application/component/controllerform.php
/**
	 * Method to check if you can add a new record.
	 *
	 * Extended classes can override this if necessary.
	 *
	 * @param   array  $data  An array of input data.
	 *
	 * @return  boolean
	 * @since   11.1
	 */
Method to check if you can add a new record.
Extended classes can override this if necessary.

@param   array  $data  An array of input data.


Method to check if you can add a new record . Extended classes can override this if necessary . @param array $data An array of input data .
protected function allowAdd($data = array())
	{
		$user = JFactory::getUser();
		return ($user->authorise('core.create', $this->option) ||
			count($user->getAuthorisedCategories($this->option, 'core.create')));
	}
protected function allowAdd ( $ data = array ( ) ) { $ user = JFactory :: getUser ( ) ; return ( $ user -> authorise ( 'core.create' , $ this -> option ) || count ( $ user -> getAuthorisedCategories ( $ this -> option , 'core.create' ) ) ) ; }
Method to check if you can add a new record.
Method to check if you can add a new record .