administrator/components/com_categories/models/category.php
protected function canDelete($record)
	{
		if (empty($record->id) || $record->published != -2)
		{
			return false;
		}

		return JFactory::getUser()->authorise('core.delete', $record->extension . '.category.' . (int) $record->id);
	}
protected function canDelete($record)
	{
		if (empty($record->id) || $record->published != -2)
		{
			return false;
		}

		return JFactory::getUser()->authorise('core.delete', $record->extension . '.category.' . (int) $record->id);
	}
protected function canDelete ( $ record ) { if ( empty ( $ record -> id ) || $ record -> published != - 2 ) { return false ; } return JFactory :: getUser ( ) -> authorise ( 'core.delete' , $ record -> extension . '.category.' . ( int ) $ record -> id ) ; }
Method to test whether a record can be deleted.

@param   object  $record  A record object.

@return  boolean  True if allowed to delete the record. Defaults to the permission set in the component.

@since   1.6
Method to test whether a record can be deleted .