vyuldashev / nova-permission

A Laravel Nova tool for Spatie's laravel-permission library
https://novapackages.com/packages/vyuldashev/nova-permission
419 stars 217 forks source link

[feature] Show permissions from role as checked and disabled when editing #130

Open scottgrayson opened 4 years ago

scottgrayson commented 4 years ago
  1. create permission1 and permission2
  2. create role1 and assign permission1
  3. create user1 and assign role1
  4. visit user.edit which has permission field

permission field result:

desired result:


Is this something that could become the default functionality? I don't think it breaks any use cases and it makes the permission editing process more clear.

I have started making a custom nova field for it, the main issue is that Nova's boolean group does not support disabling individual checkboxes.

drewroberts commented 4 years ago

I would also like to have this feature.

jonnywilliamson commented 3 years ago

Does anyone have a short guide on how to implement this at the moment? Would love to see the permissions attached to a role be marked corrected when I'm looking at a user.