private function ajaxDelete() { //this will check for the token in the url. //JSession::checkToken('get') or jexit(JText::_('JINVALID_TOKEN')); $id = JFactory::getApplication()->input->get('cid', 0, 'int'); $CedTagsHelper = new CedTagsHelper(); if ($CedTagsHelper->canUserDoTagOperations($id)) { $tag = JFactory::getApplication()->input->get('tags', '', 'string'); $CedTagsHelper->getTagModel()->deleteTag($id, $tag); } }