mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 17:25:16 -04:00
Config: Add forbiddenNoteIds to AppConfig
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
cfa43412d8
commit
2f028a4aae
16 changed files with 88 additions and 10 deletions
|
@ -30,6 +30,7 @@ import { NoteUserPermission } from '../permissions/note-user-permission.entity';
|
|||
import { NoteGroupPermission } from '../permissions/note-group-permission.entity';
|
||||
import { GroupsService } from '../groups/groups.service';
|
||||
import { checkArrayForDuplicates } from '../utils/arrayDuplicatCheck';
|
||||
import appConfiguration, { AppConfig } from '../config/app.config';
|
||||
|
||||
@Injectable()
|
||||
export class NotesService {
|
||||
|
@ -41,6 +42,8 @@ export class NotesService {
|
|||
@Inject(GroupsService) private groupsService: GroupsService,
|
||||
@Inject(forwardRef(() => RevisionsService))
|
||||
private revisionsService: RevisionsService,
|
||||
@Inject(appConfiguration.KEY)
|
||||
private appConfig: AppConfig,
|
||||
) {
|
||||
this.logger.setContext(NotesService.name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue