Skip to content

NbAccessChecker #954

@KelvinPrimo

Description

@KelvinPrimo

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions