@contember/authorization
Advanced tools
Comparing version 1.1.0-alpha.5 to 1.1.0-alpha.6
@@ -35,4 +35,4 @@ import AccessEvaluator from './AccessEvaluator'; | ||
export class Roles implements AccessNode { | ||
readonly roles: string[]; | ||
constructor(roles: string[]); | ||
readonly roles: readonly string[]; | ||
constructor(roles: readonly string[]); | ||
isAllowed(accessEvaluator: AccessEvaluator, action: Authorizator.Action): Promise<boolean>; | ||
@@ -39,0 +39,0 @@ } |
@@ -25,3 +25,3 @@ import AuthorizationScope from './AuthorizationScope'; | ||
interface Identity { | ||
roles: string[]; | ||
roles: readonly string[]; | ||
} | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "@contember/authorization", | ||
"version": "1.1.0-alpha.5", | ||
"version": "1.1.0-alpha.6", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -75,3 +75,3 @@ import AccessEvaluator from './AccessEvaluator' | ||
export class Roles implements AccessNode { | ||
constructor(public readonly roles: string[]) {} | ||
constructor(public readonly roles: readonly string[]) {} | ||
@@ -78,0 +78,0 @@ isAllowed(accessEvaluator: AccessEvaluator, action: Authorizator.Action): Promise<boolean> { |
@@ -46,3 +46,3 @@ import AuthorizationScope from './AuthorizationScope' | ||
export interface Identity { | ||
roles: string[] | ||
roles: readonly string[] | ||
} | ||
@@ -49,0 +49,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
62664