Closed DenaByte closed 1 year ago
Some more info, just tried to do some more troubleshooting and installed 3.0 instead of 3.1 of the vanilo framwork, and the superuser gets proper access to the admin panel.
composer require vanilo/framework ^3.0
This issue has been automatically marked as stale because it has not had recent activity. It will be closed within 3 days if no further activity occurs. Thank you for your contributions.
With a fresh installation of Vanilo 3.1, the superuser can't access admin panel. Some troubleshooting revealed it's likely not authorized properly. Here's the story:
After following the standard installation steps from https://vanilo.io/docs/3.x/installation https://vanilo.io/docs/3.x/admin-installation I create a superuser successfully, but don't have access to the admin dashboard. Some troubleshooting I did
php artisan tinker \App\Models\User::find(1)->can('edit products'); = false
user with id 1 is the superuser and the role is properly assigned in DB, role permissions are also properly assigned in DB.Decided to test an old Vanilo 3.0 project I have where the issue is not present.
Then attached the new Vanilo 3.1 project to the old one's DB to test permissions, because they work there.
php artisan tinker \App\Models\User::find(2)->can('edit products'); = false
User with ID 2 is the superuser on the old project. The new installation's test returned false, indicating the admin user there wasnt properly authorized, keeping in mind that the old project would authorize the same user successfully.Here is my concord.php, user.php and appservice provider.