I'm unable to do a add or delete when I have this code..
function node($deleted = false)
{
--snip--
if ($deleted) {
$crud->unset_add();
$crud->unset_delete();
}
}
So the $deleted should be false when running main/node without setting it to true. But I'm unable to delete or add. Get this error:
An Error Was Encountered
You don't have permissions for this operation --- #0 /var/www/vhosts/xxx/html/application/controllers/main.php(237): grocery_CRUD->render() #1 [internal function]: Main->node('add') #2 /var/www/vhosts/xxx/html/system/core/CodeIgniter.php(359): call_user_func_array(Array, Array) #3 /var/www/vhosts/xxx/html/index.php(202): require_once('/var/www/vhosts...') #4 {main}