Modified this a bit so it wouldn't throw a MySQL error if the categories array is empty...
// overwrite options_list to display categories based on permission function options_list($id, $name) { $permissions = $this->fuel_auth->get_p…
Fixed it...just dropped $where and $order. Also had to typecast the permissions array.
Here's the code:
function options_list($id, $name) { $permissions = $this->fuel_auth->get_permissions(); $cat_permissions = array(); //t…
That fixed the articles module issues but editing or creating a category still throws errors:
1.Missing argument 3 for Categories_model::options_list()
2.Missing argument 4 for Categories_model::options_list()
3.Undefined variable: where
4.Undefine…
This works perfectly when logged in as a non admin.
If logged in as admin, trying to edit categories or articles will throw missing argument errors as well as this MySQL error:
"You have an error in your SQL syntax; check the manual that correspon…
Are there any examples someone could point me too regarding this? I'm just not sure how to loop through category type permissions and extract them.
This should be fairly easy but I just can't crack it.
I've managed to filter the options list by a specific category permission name but I can't figure out how to create a list of all the categories the current user has access to.
This is the options_list I've added to the categories model:
function…
I'm behind a corporate firewall. The error message says a function is not a function. If I remove that function the next one returns the same error.
I'm pretty confident it's because Jquery is being loaded twice if I'm logged into the admin. I can …