Silvanite / novatoolpermissions

Laravel Nova Permissions Tool (User, Roles and Permissions / Access Control (ACL))
MIT License
101 stars 32 forks source link

How people can edit their profile #9

Closed tolawho closed 5 years ago

tolawho commented 6 years ago

I have 2 user types: admin and buyer, only admin can see the Users resource and have full permission(viewUsers, manageUsers). The buyer can't see the Users resource because buyer dont have (viewUsers, manageUsers), but I want the buyer can update their profile, I make a menu like image below, and the link of profile is http://*****.****/nova/resources/users/3 // 3 is their user id

image

Please help How to I can do it.

Sorry for my english. Thanks

m2de commented 6 years ago

Hi @tolawho ... if I understand correctly, you would need to register your own User Policy to overwrite the package defaults and add a permissions to see if the user is allowed to view that specific resource (refer to Laravel Documentation on this)

m2de commented 5 years ago

Hi @tolawho . Please can you let me know if you still need anything or if I can close this issue? Many thanks!

tolawho commented 5 years ago

Thank you for your comment, i will close it.