mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 21:24:06 -05:00
fix: use correct body parameter for permission controller
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
ef699a9123
commit
0f8effd318
1 changed files with 1 additions and 1 deletions
|
@ -250,7 +250,7 @@ export class NotesController {
|
||||||
@RequestUser() user: User,
|
@RequestUser() user: User,
|
||||||
@RequestNote() note: Note,
|
@RequestNote() note: Note,
|
||||||
@Param('groupName') groupName: string,
|
@Param('groupName') groupName: string,
|
||||||
@Body() canEdit: boolean,
|
@Body('canEdit') canEdit: boolean,
|
||||||
): Promise<NotePermissionsDto> {
|
): Promise<NotePermissionsDto> {
|
||||||
const permissionGroup = await this.groupService.getGroupByName(groupName);
|
const permissionGroup = await this.groupService.getGroupByName(groupName);
|
||||||
const returnedNote = await this.permissionService.setGroupPermission(
|
const returnedNote = await this.permissionService.setGroupPermission(
|
||||||
|
|
Loading…
Reference in a new issue