Users module- Authorize route

lehel - 9 months ago

Hello, I tried to authorize the register route. 'anomaly.module.users::role' => 'guest', 'uses' => 'Anomaly\UsersModule\Http\Controller\[email protected]' I get access denied error for admin,user and guest roles. The guest role is not working.

Answer

ryanthompson - 9 months ago

Hey there! Good find - turns out the guest role was not being considered (it works differently than the others).

I fixed it so you can composer update ^_^

https://github.com/anomalylabs/users-module/commit/b68231eea8e0c312e65d57cfdc442b94da164928

Also worth pointing out this arose from this fix: https://github.com/pyrocms/pyrocms/issues/4108

ryanthompson - 9 months ago

Hey there! Good find - turns out the guest role was not being considered (it works differently than the others).

I fixed it so you can composer update ^_^

https://github.com/anomalylabs/users-module/commit/b68231eea8e0c312e65d57cfdc442b94da164928

Also worth pointing out this arose from this fix: https://github.com/pyrocms/pyrocms/issues/4108