User Role - Forbidden yellow screen error

User Role - Forbidden yellow screen error Hi , I have created new roles and added permissions to them. I followed the twill documentation and I still get Forbidden yellow screen error when i try to access a certain module as the new user role i created.It works fine for admin and publisher, but for author i get Forbidden when i try to access posts. Can anyone suggest me how to fix this? config/twill.php 'navigation' => [ 'posts' => [ 'title' => 'Posts', 'module' => true, 'route' => 'admin.posts.index', 'can' => 'posts.list', ], 'topics' => [ 'title' => 'Topics', 'module' => true, 'route' => 'admin.topics.index', 'can' => 'topics.list', ], 'authors' => [ 'title' => 'Authors', 'module' => true, 'can' => 'authors.list', ], 'users' => [ 'title' => 'Users', 'module' => true, 'can' => 'users.list', ], 'settings' => [ 'title' => 'Settings', 'module' => true, 'can' => 'settings.edit', ], ],
3 Replies
zeezo887
zeezo8872w ago
Can you specify your Twill and Laravel version?
oxana
oxanaOP2w ago
Laravel 11 and Twill 3.4 Still haven't solved this, can anyone help me?
zeezo887
zeezo8875d ago
Hello again! Check out this comment: https://github.com/area17/twill/issues/2716#issuecomment-2634864823 — let me know if that helps.
GitHub
Twill 3 custom roles & permissions are not working · Issue #2716 ...
Description Hello, I'm trying to create new roles and add permissions to them. i want to make some modules only accessible by some of the new roles I've created. I followed the twill docume...

Did you find this page helpful?