Questions tagged [angular-permission]

angular-permission is a simple angular library to manage roles and permissions based access control for angular applications.

Functionalities :

  • Easy Manage for your permissions & roles.
  • Controlling access in views.
  • Usage with ui-router states and emitted events.
  • Usage with ng-route in routes and emitted events.
13 questions
3
votes
1 answer

Angular 5 application freezes when opened in multiple tabs - chrome

We have built our application using angular 5. Application performance is good but with the below scenario, the application gets hung. opening the application in one tab and duplicating the browser tab, will freeze the angular application running in…
2
votes
1 answer

angular-permission: Testing a user has a role or permission from a controller

I have defined my user roles and permissions in my application as per the documentation. https://github.com/Narzerus/angular-permission/wiki With this I am able to use the ui directives or ui-router handling. Q: How to test that a user has a role…
Blowsie
  • 40,239
  • 15
  • 88
  • 108
1
vote
0 answers

How to do multiple redirections with multiple permissions in angularjs using angular permission library?

I want to have a route that has multiple permissions, and it can only be accessible if all of them are met and I want a different redirection rule for each of them, somewhat like below: { only: ['loggedin', 'hasProject'], redirectTo: { …
1
vote
0 answers

Search params not preserved on page refresh when using permission.ui module

I'm using angular 1.5.8, angular-ui-router 0.2.18 & 5.1.0 version of anglar-permission library. I have enabled the HTML5 mode in the app. Everything was working fine in my app until today when I starting making use of $location.search() method. My…
Shashank Agrawal
  • 25,161
  • 11
  • 89
  • 121
1
vote
1 answer

bundling angular-permission with webpack

I'm currently in the process of migrating an AngularJS (1.5.8) from a Gulp pipeline to a webpack pipeline. One of the dependencies we have is angular-permission. We're relying on the commonjs style (require) and as documented here I added a…
baywet
  • 4,377
  • 4
  • 20
  • 49
0
votes
0 answers

How to make ngxPermissionsExcept work correctly

I have recently started using ngxPermissions (https://www.npmjs.com/package/ngx-permissions#multiple-permissions) for handling accesses in my angular app. However, I face difficulties when I have multiple roles for the same user.…
Saurabh Tiwari
  • 4,632
  • 9
  • 42
  • 82
0
votes
1 answer

handling permissions in a menu component

I want to develop a component in my angular 4 application which mange the menu in the dashboard of my app. My problem is that i have different type of users ('admin', 'expert', 'manager', ...) and for each user there is a list of items that should…
Wassim Makni
  • 471
  • 2
  • 9
  • 21
0
votes
1 answer

Dynamic population of angular permissions

This is my html code
  • Hashim
    • 159
    • 1
    • 1
    • 12
    0
    votes
    0 answers

    Angular-permission roles doesn't redirect if role condition is false

    I'm using angular-permission 5.3.2. Here is my app.run.js (function() { 'use strict'; angular .module('myApp') .run(run); /** @ngInject */ function run(PermRoleStore, PermPermissionStore, $auth) { PermRoleStore …
    0
    votes
    1 answer

    AngularJS authorization, resolve promise before angular permissions, check for permission

    Im using angular-permission library. I defined some of permissions in run(): PermPermissionStore .definePermission('isAuthorize', function () { console.log('isAuthorize', OAuth.isAuthenticated()); return…
    0
    votes
    2 answers

    Check if user has permission to access specific states

    I use angular-permission and I want to check if user has access to specific states. My state config: $stateProvider .state('app', { url: '/', abstract: true, data: { permissions: { …
    Serhii Holinei
    • 5,758
    • 2
    • 32
    • 46
    -1
    votes
    1 answer

    How to do asynchronous task while defining a permission using angular permission library

    I'm using angular-permission library along with ui-router and satellizer. Following is the state definition for home. In that I'm checking whether user is authorized using angular-permission. $stateProvider.state('500', home); var home = { …
    -1
    votes
    1 answer

    Role based authorisation in Angular Js

    I am working on a project that requires multiple roles for which I'm using https://github.com/Narzerus/angular-permission. I need to work with different set of permissions on each of these roles. For example, role admin can have permissions…