Skip to content

How do 'hasPermission' and 'hasOnlyRoles' work? #241

Open
@craigchandler

Description

@craigchandler

I'm submitting a...


[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  
[ ] Feature request
[X ] Documentation issue or request

Current behavior

How do 'hasPermission' and 'hasOnlyRoles' work?

I do a this._rolesService.addRoleWithPermissions('ADMIN', ['admin' ]);

both hasPermission('admin') and hasOnlyRoles('ADMIN') return false

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions