
Product
Socket for Jira Is Now Available
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.
@availity/authorizations-angular
Advanced tools
A package providing a base authorizations class to help check which permissions a user has.
npm install @availity/authorizations-angular
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;
}
});
For all methods, if no region is passed in, defaults to current region.
isAuthorized(permissionId, region) resolves to true or false if the current user has access to this permissionId in this region.
isAnyAuthorizedisAnyAuthorized(permissionIds, region) resolves to true or false if the current user has access to any of these permissionIds in this region.
getPermissiongetPermission(permissionId, region) resolves to the permission object for this permissionId in this region.
getPermissionsgetPermissions(permissionIds, region) resolves to an array of permission objects for these permissionIds in this region.
getOrganizationsgetOrganizations(permissionId, region) resolves to the organizations array for this permissionId, will be empty if not authorized
getPayersgetPayers(permissionId, organizationId, region) will check permissionId for an organization with organizationId and resolve to its resources or an empty array.
Kasey Powers
FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.