![]() |
Permissions vary by Groups.
Your command creates the user with the desired group. Therefore, you can use the following command to access the user group. PHP Code: print_r(auth()->user()->getGroups()); If you want to access permissions, you must first add permissions for each user. In this command, you have not added permission for the user, so an empty array is returned. see https://codeigniter4.github.io/shield/au...permission |
Messages In This Thread |
[SOLVED] Shield getPermissions returns an empty array - by grimpirate - 04-21-2023, 08:23 AM
RE: Shield getPermissions returns an empty array - by datamweb - 04-21-2023, 11:44 AM
RE: Shield getPermissions returns an empty array - by grimpirate - 04-21-2023, 01:10 PM
RE: Shield getPermissions returns an empty array - by datamweb - 04-21-2023, 02:00 PM
RE: Shield getPermissions returns an empty array - by kenjis - 04-21-2023, 07:12 PM
RE: Shield getPermissions returns an empty array - by grimpirate - 04-22-2023, 08:22 AM
RE: [SOLVED] Shield getPermissions returns an empty array - by kenjis - 04-26-2023, 12:03 AM
|