Add permissions to express request

This commit is contained in:
rijkvanzanten
2020-07-13 16:39:59 -04:00
parent 7b0d14e79b
commit 6a3f9210f0
2 changed files with 4 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
* Custom properties on the req object in express
*/
import { Permission } from './permissions';
export {};
declare global {
@@ -13,6 +15,7 @@ declare global {
collection?: string;
sanitizedQuery?: Record<string, any>;
single?: boolean;
permissions?: Permission;
}
}
}

View File

@@ -5,6 +5,7 @@ export * from './collection';
export * from './field';
export * from './files';
export * from './meta';
export * from './permissions';
export * from './query';
export * from './relation';
export * from './sessions';