mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 14:44:43 -04:00
Add permissions Service
Checks if the given user has sufficient rights on the given resource. Signed-off-by: Yannick Bungers <git@innay.de>
This commit is contained in:
parent
68cbb5a9c2
commit
838b95b8c2
2 changed files with 103 additions and 4 deletions
|
@ -9,11 +9,10 @@ import { TypeOrmModule } from '@nestjs/typeorm';
|
|||
import { LoggerModule } from '../logger/logger.module';
|
||||
import { NoteGroupPermission } from './note-group-permission.entity';
|
||||
import { NoteUserPermission } from './note-user-permission.entity';
|
||||
import { PermissionsService } from './permissions.service';
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
TypeOrmModule.forFeature([NoteUserPermission, NoteGroupPermission]),
|
||||
LoggerModule,
|
||||
],
|
||||
exports: [PermissionsService],
|
||||
providers: [PermissionsService],
|
||||
})
|
||||
export class PermissionsModule {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue