Passing a variable as permission
See original GitHub issueI’m submitting a…
[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report
[x] Feature request
[ ] Documentation issue or request
Current behavior
element doesn’t switch its status (from invisible to visible or vice versa) if the permissions are dynamic.
if I have a button like this:
<button *ngxPermissionsOnly="some_permissions"> add Button</button>
some_permissions is a variable which changes as the route changes, the button save its status and doesn’t switch on or off.
Expected behavior
the DOM element must change its status as the variable changes.
Minimal reproduction of the problem with instructions
https://next.plnkr.co/edit/BQp2g8oDSCQ3MCRmSfqK?p=preview&preview
Environment
Angular version: 6.2.5
ngx-permissions version: 6.0.2
Browser:
- [x] Chrome (desktop) version 70.0
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
pass a variable between multiple custom permission classes ...
1. Some ideas: 1) You could set an attribute on the view parameter to has_permission(), and retrieve it in the subclassed version. ·...
Read more >How can I pass a variable command line arguments to a DOS ...
I am trying to pass variables to icacls using a Powershell 3 script running on Windows 2008 R2 SP1. This works in my...
Read more >bash - Trying to get path into variable; permission denied
I would like to iterate through each group and temporarily store the paths to the files as text variables (to be used with...
Read more >Variable permission (message) in commands - skUnity Forums
I'm trying to use permissions based on a stirng in a command to check if a player ... send "&cYou don't have permission...
Read more >IAM policy elements: Variables and tags - AWS Documentation
Use AWS Identity and Access Management (IAM) policy variables as ... However this permission is granted only if the URL matches their AWS...
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
@ITEANJD Fix it in version 6.0.4
I think it works, but I’m going to test it more then I will tell you if it works as expected.