File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
packages/cubejs-api-gateway/src Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2175,10 +2175,13 @@ class ApiGateway {
21752175 ) : ContextToPermissionsFn {
21762176 let permissionsCache ;
21772177 return options . contextToPermissions
2178- ? async ( securityContext ?: any ) => {
2178+ ? async ( securityContext ?: any , defaultPermissions ?: Permission [ ] ) => {
21792179 if ( ! permissionsCache ) {
21802180 const permissions = options . contextToPermissions &&
2181- await options . contextToPermissions ( securityContext ) ;
2181+ await options . contextToPermissions (
2182+ securityContext ,
2183+ defaultPermissions ,
2184+ ) ;
21822185 if ( ! permissions || ! Array . isArray ( permissions ) ) {
21832186 throw new Error (
21842187 'A user-defined contextToPermissions function returns an inconsistent type.'
You can’t perform that action at this time.
0 commit comments