2022-08-27 08:59:26 +00:00
|
|
|
import { SetMetadata } from '@nestjs/common';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Restrict this route to only these privileges. AND logic!
|
|
|
|
* @param privileges List of privileges for this route
|
|
|
|
*/
|
2022-08-27 16:58:24 +00:00
|
|
|
export const Privileges = (...privileges: (string | string[])[]) =>
|
2022-08-27 08:59:26 +00:00
|
|
|
SetMetadata('privileges', privileges);
|