Laravel-Backpack / PermissionManager

Admin interface for managing users, roles, permissions, using Backpack CRUD
http://backpackforlaravel.com
Other
516 stars 166 forks source link

'Undefined index: permissions' error when i click user edit button #279

Closed SEZERKORAYALAKUS closed 3 years ago

SEZERKORAYALAKUS commented 3 years ago

Undefined index: permissions (View: .....\backpack\crud\src\resources\views\crud\fields\checklist_dependency.blade.php)

What I did:

I assigned permissions to roles. (ex: super_admin (role): car_update (permission) and car_delete (permission)) Then I clicked the button to edit a user whose role is super_admin.

Edit: I click the button to edit a user with the role

What I expected to happen:

Opening the user editing screen and making editing

What happened:

Ekran Alıntısı

What I've already tried to fix it:

I followed the steps in the PermissionManager header but the problem continued.

Backpack, Laravel, PHP, DB version:

php v: 7.2.19, laravel v: 7.30.4, backpack v: 4.1.43, MariaDB v: 10.6.0-MariaDB

welcome[bot] commented 3 years ago

Hello there! Thanks for opening your first issue on this repo!

Just a heads-up: Here at Backpack we use Github Issues only for tracking bugs. Talk about new features is also acceptable. This helps a lot in keeping our focus on improving Backpack. If you issue is not a bug/feature, please help us out by closing the issue yourself and posting in the appropriate medium (see below). If you're not sure where it fits, it's ok, a community member will probably reply to help you with that.

Backpack communication mediums:

Please keep in mind Backpack offers no official / paid support. Whatever help you receive here, on Gitter, Slack or Stackoverflow is thanks to our awesome awesome community members, who give up some of their time to help their peers. If you want to join our community, just start pitching in. We take pride in being a welcoming bunch.

Thank you!

-- Justin Case The Backpack Robot

pxpm commented 3 years ago

Hello @SEZERKORAYALAKUS

My guess is that it could be a cache problem ? Please try to runphp artisan cache:clear.

Let me know, Pedro

SEZERKORAYALAKUS commented 3 years ago

hello @pxpm I tried but it didn't solve the problem.