Permissions: has_permission()
I'm having trouble with the has_permission() function, anyone have a suggestion?
I'm using Fuel's users and permissions outside of the CMS, on the public side. I've logged into Fuel, added a user and password and set the permissions for a module ('staff', 'staff/edit','staff/create') - ('staff/delete' has NOT been set for this test). With that user logged in via my own login form, I can verify that user is indeed logged in. When I use has_permission('staff'), I can successfully check that the user can use my controller. However if I use has_permission('staff','delete'), it returns "1" when it should not.
Have I missed something in setting up the fuel->auth stuff?
TIA
Comments