@availity/authorizations-angular
Availity authorizations angular logic
Last updated a year ago by availity-bot .
MIT · Original npm · Tarball · package.json
$ cnpm install @availity/authorizations-angular 
SYNC missed versions from official npm registry.

Angular Authorizations

A package providing a base authorizations class to help check which permissions a user has.

Version

Install

npm install @availity/authorizations-angular

Usage

add module to your app.

import AvailityAuthorizations from '@availity/authorizations-angular';

angular.module('app', [
  AvailityAuthorizations
])
.service('ExampleService', class ExampleService{
  static $inject = ['AvAuthorizations']
  constructor(AvAuthorizations) {
    this.AvAuthorizations = AvAuthorizations;
  }
});

Methods

For all methods, if no region is passed in, defaults to current region.

isAuthorized

isAuthorized(permissionId, region) resolves to true or false if the current user has access to this permissionId in this region.

isAnyAuthorized

isAnyAuthorized(permissionIds, region) resolves to true or false if the current user has access to any of these permissionIds in this region.

getPermission

getPermission(permissionId, region) resolves to the permission object for this permissionId in this region.

getPermissions

getPermissions(permissionIds, region) resolves to an array of permission objects for these permissionIds in this region.

getOrganizations

getOrganizations(permissionId, region) resolves to the organizations array for this permissionId, will be empty if not authorized

getPayers

getPayers(permissionId, organizationId, region) will check permissionId for an organization with organizationId and resolve to its resources or an empty array.

Authors

Kasey Powers

License

MIT

Current Tags

  • 3.0.18-alpha.0                                ...           canary (a year ago)
  • 3.0.17                                ...           latest (a year ago)

24 Versions

  • 3.0.18-alpha.0                                ...           a year ago
  • 3.0.17                                ...           a year ago
  • 3.0.16                                ...           a year ago
  • 3.0.15                                ...           a year ago
  • 3.0.15-alpha.7                                ...           a year ago
  • 3.0.14                                ...           a year ago
  • 3.0.13                                ...           a year ago
  • 3.0.12                                ...           a year ago
  • 3.0.11                                ...           a year ago
  • 3.0.10                                ...           a year ago
  • 3.0.9                                ...           a year ago
  • 3.0.8                                ...           a year ago
  • 3.0.7                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.5                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
  • 3.0.1-alpha.6                                ...           2 years ago
  • 3.0.1-alpha.4                                ...           2 years ago
  • 3.0.1-alpha.3                                ...           2 years ago
  • 3.0.0                                ...           2 years ago
  • 2.7.0                                ...           2 years ago
Downloads
Today 0
This Week 24
This Month 48
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |