@@ -322,7 +322,7 @@ export class AuthZService {
322
322
* @return whether or not the request is allowed
323
323
*/
324
324
enforce ( ...params : any [ ] ) : Promise < boolean > {
325
- return authzAPI . enforce ( this . enforcer , params ) ;
325
+ return authzAPI . enforce ( this . enforcer , ... params ) ;
326
326
}
327
327
328
328
/**
@@ -334,7 +334,7 @@ export class AuthZService {
334
334
* @return whether or not the request is allowed
335
335
*/
336
336
enforceWithMatcher ( matcher : string , ...params : any [ ] ) : Promise < boolean > {
337
- return authzAPI . enforceWithMatcher ( this . enforcer , matcher , params ) ;
337
+ return authzAPI . enforceWithMatcher ( this . enforcer , matcher , ... params ) ;
338
338
}
339
339
340
340
/**
@@ -345,7 +345,7 @@ export class AuthZService {
345
345
* @return whether or not the request is allowed, and what policy caused that decision
346
346
*/
347
347
enforceEx ( ...params : any [ ] ) : Promise < [ boolean , string [ ] ] > {
348
- return authzAPI . enforceEx ( this . enforcer , params ) ;
348
+ return authzAPI . enforceEx ( this . enforcer , ... params ) ;
349
349
}
350
350
351
351
/**
@@ -360,7 +360,7 @@ export class AuthZService {
360
360
matcher : string ,
361
361
...params : any [ ]
362
362
) : Promise < [ boolean , string [ ] ] > {
363
- return authzAPI . enforceExWithMatcher ( this . enforcer , matcher , params ) ;
363
+ return authzAPI . enforceExWithMatcher ( this . enforcer , matcher , ... params ) ;
364
364
}
365
365
366
366
/**
0 commit comments