Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.

Permissions: has_permission()

edited July 2016 in Modules
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

Sign In or Register to comment.