question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Permission directive

See original GitHub issue

In 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:closed
  • Created 9 years ago
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
masterspambotcommented, Apr 6, 2016

Updated link. See the source Luke! 😃

2reactions
brazorfcommented, Apr 6, 2016

@masterspambot Link above is broken

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found