Permission directive
See original GitHub issueIn this discussion we will decide about the first directive for this module.
The first idea mentioned in other topics such as #28 is to create a directive which either shows or hide an element depending on a permission’s resolution.
A possible approach could be:
<a sref="post.delete" rp-only="Admin" />Delete post</a>
<a sref="posts.index" rp-except="Anonymous" />View posts</a>
Feel free to contribute to this discussion, post your ideas and concerns.
Also have a look at #37 and see what you like and don’t from it, get some ideas and whatnot
Cheers!
Issue Analytics
- State:
- Created 9 years ago
- Comments:21 (4 by maintainers)
Top Results From Across the Web
Angular Permission Directive - StackBlitz
Starter project for Angular apps that exports to the Angular CLI.
Read more >Extend the *ngIf Syntax to Create a Custom Permission Directive
So our use case is to create a directive, which shows/hides elements on the page based on our currently authenticated user's permissions.
Read more >Reusable Directive For Authorisation in Angular, avoid *ngIf!
We can now create a directive that takes the permissions of the currently authenticated user and shows/hides them appropriately.
Read more >ngx-permissions/permissions.directive.spec.ts at master - GitHub
Permission and roles based access control for your angular(angular 2,4,5,6,7,9+) applications(AOT, lazy modules compatible ...
Read more >Blade directives | laravel-permission - Spatie
##Permissions. This package doesn't add any permission-specific Blade directives. Instead, use Laravel's native @can directive to check if a user has a ...
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
Updated link. See the source Luke! 😃
@masterspambot Link above is broken