forked from wangziqi/gongxue-base
fix: align permission navigation and page access
This commit is contained in:
@@ -32,6 +32,12 @@ export class DepositsController {
|
||||
@InjectRepository(Student) private studentRepo: Repository<Student>,
|
||||
) {}
|
||||
|
||||
@Get('student-lookups')
|
||||
@RequirePermission('deposit:create')
|
||||
getStudentLookups() {
|
||||
return this.service.getStudentLookups();
|
||||
}
|
||||
|
||||
@Get()
|
||||
@RequirePermission('deposit:view')
|
||||
findAll(@Query('studentId') studentId?: string, @Query('status') status?: string) {
|
||||
|
||||
Reference in New Issue
Block a user