-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
N21-1395 Fix authorization not working for CTL board elements after a…
…uthorization refactoring (#4491)
- Loading branch information
1 parent
504e8d1
commit 664a97b
Showing
17 changed files
with
429 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,13 @@ | ||
import { forwardRef, Module } from '@nestjs/common'; | ||
import { LegacySchoolModule } from '@modules/legacy-school'; | ||
import { Module } from '@nestjs/common'; | ||
import { ContextExternalToolRepo, SchoolExternalToolRepo } from '@shared/repo'; | ||
import { LoggerModule } from '@src/core/logger'; | ||
import { AuthorizationModule } from '@modules/authorization'; | ||
import { LegacySchoolModule } from '@modules/legacy-school'; | ||
import { LearnroomModule } from '@modules/learnroom'; | ||
import { CommonToolService, CommonToolValidationService } from './service'; | ||
import { ToolPermissionHelper } from './uc/tool-permission-helper'; | ||
|
||
@Module({ | ||
imports: [LoggerModule, forwardRef(() => AuthorizationModule), LegacySchoolModule, LearnroomModule], | ||
imports: [LoggerModule, LegacySchoolModule], | ||
// TODO: make deletion of entities cascading, adjust ExternalToolService.deleteExternalTool and remove the repos from here | ||
providers: [ | ||
CommonToolService, | ||
CommonToolValidationService, | ||
ToolPermissionHelper, | ||
SchoolExternalToolRepo, | ||
ContextExternalToolRepo, | ||
], | ||
exports: [ | ||
CommonToolService, | ||
CommonToolValidationService, | ||
ToolPermissionHelper, | ||
SchoolExternalToolRepo, | ||
ContextExternalToolRepo, | ||
], | ||
providers: [CommonToolService, CommonToolValidationService, SchoolExternalToolRepo, ContextExternalToolRepo], | ||
exports: [CommonToolService, CommonToolValidationService, SchoolExternalToolRepo, ContextExternalToolRepo], | ||
}) | ||
export class CommonToolModule {} |
11 changes: 0 additions & 11 deletions
11
apps/server/src/modules/tool/common/mapper/context-type.mapper.spec.ts
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
apps/server/src/modules/tool/common/mapper/context-type.mapper.ts
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from './context-type.mapper'; | ||
export * from './tool-status-response.mapper'; |
2 changes: 1 addition & 1 deletion
2
apps/server/src/modules/tool/common/mapper/tool-status-response.mapper.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.