Closed elvispdosreis closed 1 year ago
@elvispdosreis In Your case they are all permissions just concatenate 2 arrays and insert into loadPermissions function. Hope this helps.
I understand even having Role and Permission, they are stored in just one place, and in case I need to know if the user has a role: SuperAdmin or role: Admin and permission createUser.
How do I do this check in ngxPermissionsOnly
i will use your package with https://spatie.be/docs/laravel-permission/v5/introduction
the library is based on permissions. So basically when you write ngxPermissionsOnly=['createUser'] it will check if user has permission createUser.
I'm submitting a...
Expected behavior
I have doubts about how to work with roles and permissions. For example, I have some Roles ['Super Admin', 'Admin', 'User', 'Guest'], but these roles are standard and do not have any permissions within them, but I have some separate permissions that are not linked to any roles. how do i add these check rules in the html ngxPermissionsOnly
Environment