mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Config: Add forbiddenNoteIds to AppConfig
Signed-off-by: Philip Molares <philip.molares@udo.edu>
This commit is contained in:
parent
2a83c9b2ac
commit
966f5ee2fe
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