Closed abalad closed 3 years ago
@abalad Hi its possible with roles roles use and operator
ngxRolesService
.addRole('ADMIN', ['read', 'write']);
And then just use
<div *ngxPermissionsOnly="['ADMIN']">
<div>You can see this text </div>
</div>
If the user doesnt have read and write it will not show.
I'm submitting a...
Current behavior
I would like to specify multiple permissions that the user needs to have in order to complete an action. The issue is that he needs to have all permissions not just one of them, so the logic needs to be "and" not "or".
Expected behavior
Environment