How to get dynamic permissions for ACL from backend?
See original GitHub issueIssue type
I’m submitting a … (check one with “x”)
- bug report
- feature request
- Question
Issue description
Current behavior: How to get dynamic permissions for ACL from backend instead of static as below:
Expected behavior:
Steps to reproduce:
Related code:
NbSecurityModule.forRoot({
accessControl: {
guest: {
view: ['news', 'comments'],
},
user: {
parent: 'guest',
create: 'comments',
},
moderator: {
parent: 'user',
create: 'news',
remove: '*',
},
},
}),
Other information:
npm, node, OS, Browser
<!--
Node, npm: `node --version` and `npm --version`
OS: Windows (7/8/10). Linux (incl. distribution). macOS (El Capitan? Sierra?)
Browser: Chrome/Safari/Firefox/etc?
-->
Angular, Nebular
<!--
Check your `package-lock.json` or locate a `package.json` in the `node_modules` folder.
-->
Issue Analytics
- State:
- Created 5 years ago
- Comments:8
Top Results From Across the Web
How to get dynamic permissions for ACL - Stack Overflow
I'm trying to implement dynamic permissions, that is to say, that the components to which the user has access come in the token....
Read more >Use Access Control List (ACL) to set up permission-based ...
Learn how to use Access Control List (ACL) in your applications to set up conditional access to data based on specific user profiles....
Read more >Zend_Acl part 3: creating and storing dynamic ACLs
In this third post of the series, I'll talk about using dynamic ACLs: How to store an ACL in a database, and construct...
Read more >Dynamic roles [ACL] - Discussion - Phalcon Framework
If ACL is executed with every http request, I would create entity 'Role' and entity 'Permission'. Every role would have some permissions. ACL...
Read more >How can I create and manage permissions more dynamically?
The existing ACL and role-based systems I've seen don't seem to offer any way to deal with constraints - you either have access...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
If anyone looking for the solution, I have used same logic what @jesus-ibanez suggested, inside AuthGuard
canActivate()
methodby using setAccessControl after login it works, thanks a lot.