fix permissions and teacher attendance workflows
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
import { SetMetadata } from '@nestjs/common';
|
||||
|
||||
export const AUTHENTICATED_KEY = 'authenticatedOnly';
|
||||
|
||||
/**
|
||||
* 标记为“只需要登录”的接口:仍由全局 JwtAuthGuard 校验 JWT,
|
||||
* 但 PermissionGuard 不要求具体业务权限。
|
||||
*/
|
||||
export const Authenticated = () => SetMetadata(AUTHENTICATED_KEY, true);
|
||||
Reference in New Issue
Block a user