mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Adding right to confirm pending creation.
This commit is contained in:
parent
2f59ecae50
commit
c31c8b28f2
@ -25,4 +25,5 @@ export enum RIGHTS {
|
|||||||
UPDATE_PENDING_CREATION = 'UPDATE_PENDING_CREATION',
|
UPDATE_PENDING_CREATION = 'UPDATE_PENDING_CREATION',
|
||||||
SEARCH_PENDING_CREATION = 'SEARCH_PENDING_CREATION',
|
SEARCH_PENDING_CREATION = 'SEARCH_PENDING_CREATION',
|
||||||
DELETE_PENDING_CREATION = 'DELETE_PENDING_CREATION',
|
DELETE_PENDING_CREATION = 'DELETE_PENDING_CREATION',
|
||||||
|
CONFIRM_PENDING_CREATION = 'CONFIRM_PENDING_CREATION',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -160,6 +160,7 @@ export class AdminResolver {
|
|||||||
return !!res
|
return !!res
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Authorized([RIGHTS.CONFIRM_PENDING_CREATION])
|
||||||
@Mutation(() => Boolean)
|
@Mutation(() => Boolean)
|
||||||
async confirmPendingCreation(@Arg('id') id: number): Promise<boolean> {
|
async confirmPendingCreation(@Arg('id') id: number): Promise<boolean> {
|
||||||
const loginPendingTasksAdminRepository = getCustomRepository(LoginPendingTasksAdminRepository)
|
const loginPendingTasksAdminRepository = getCustomRepository(LoginPendingTasksAdminRepository)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user