-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Open
Description
Issue type
I'm submitting a ... (check one with "x")
- bug report
- feature request
feature description
*nbIsGranted to use "OR" and "AND" on permissions and resources.
for especial permissions givem from an api to especial users.
like this:
NbSecurityModule.forRoot({ accessControl: { custon: { view: ['header'], }, guest: { parent: 'custon', view: ['header'], Screate: api.specialcreate, },
and in template.
<button *nbIsGranted="[{'OR':['post', 'Screate']}, {'AND':['comments', 'specialresource1']}]" >Post Comment</button>
in this example the user must have "post" OR "Screate" permission, and 'comments' and 'specialresource1' resource.