mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Adding right to create pending creation.
This commit is contained in:
parent
0d431974bd
commit
6e27c31d3c
@ -21,4 +21,5 @@ export enum RIGHTS {
|
|||||||
HAS_ELOPAGE = 'HAS_ELOPAGE',
|
HAS_ELOPAGE = 'HAS_ELOPAGE',
|
||||||
// Admin
|
// Admin
|
||||||
SEARCH_USERS = 'SEARCH_USERS',
|
SEARCH_USERS = 'SEARCH_USERS',
|
||||||
|
CREATE_PENDING_CREATION = 'CREATE_PENDING_CREATION',
|
||||||
}
|
}
|
||||||
|
|||||||
@ -42,7 +42,7 @@ export class AdminResolver {
|
|||||||
return adminUsers
|
return adminUsers
|
||||||
}
|
}
|
||||||
|
|
||||||
@Authorized([RIGHTS.SEARCH_USERS])
|
@Authorized([RIGHTS.CREATE_PENDING_CREATION])
|
||||||
@Mutation(() => [Number])
|
@Mutation(() => [Number])
|
||||||
async createPendingCreation(
|
async createPendingCreation(
|
||||||
@Args() { email, amount, memo, creationDate, moderator }: CreatePendingCreationArgs,
|
@Args() { email, amount, memo, creationDate, moderator }: CreatePendingCreationArgs,
|
||||||
@ -67,7 +67,7 @@ export class AdminResolver {
|
|||||||
return await getUserCreations(user.id)
|
return await getUserCreations(user.id)
|
||||||
}
|
}
|
||||||
|
|
||||||
// @Authorized([RIGHTS.SEARCH_USERS])
|
@Authorized([RIGHTS.CREATE_PENDING_CREATION])
|
||||||
@Mutation(() => CreatePendingCreations)
|
@Mutation(() => CreatePendingCreations)
|
||||||
async createPendingCreations(
|
async createPendingCreations(
|
||||||
@Arg('pendingCreations', () => [CreatePendingCreationArgs])
|
@Arg('pendingCreations', () => [CreatePendingCreationArgs])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user