mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change the method name from listAllConfirmedContributions to listAllContributions.
This commit is contained in:
parent
fdea5f68ef
commit
cbbe0ffad2
@ -27,7 +27,7 @@ export enum RIGHTS {
|
|||||||
GDT_BALANCE = 'GDT_BALANCE',
|
GDT_BALANCE = 'GDT_BALANCE',
|
||||||
CREATE_CONTRIBUTION = 'CREATE_CONTRIBUTION',
|
CREATE_CONTRIBUTION = 'CREATE_CONTRIBUTION',
|
||||||
LIST_CONTRIBUTIONS = 'LIST_CONTRIBUTIONS',
|
LIST_CONTRIBUTIONS = 'LIST_CONTRIBUTIONS',
|
||||||
LIST_ALL_CONFIRMED_CONTRIBUTIONS = 'LIST_ALL_CONFIRMED_CONTRIBUTIONS',
|
LIST_ALL_CONTRIBUTIONS = 'LIST_ALL_CONTRIBUTIONS',
|
||||||
// Admin
|
// Admin
|
||||||
SEARCH_USERS = 'SEARCH_USERS',
|
SEARCH_USERS = 'SEARCH_USERS',
|
||||||
SET_USER_ROLE = 'SET_USER_ROLE',
|
SET_USER_ROLE = 'SET_USER_ROLE',
|
||||||
|
|||||||
@ -25,7 +25,7 @@ export const ROLE_USER = new Role('user', [
|
|||||||
RIGHTS.GDT_BALANCE,
|
RIGHTS.GDT_BALANCE,
|
||||||
RIGHTS.CREATE_CONTRIBUTION,
|
RIGHTS.CREATE_CONTRIBUTION,
|
||||||
RIGHTS.LIST_CONTRIBUTIONS,
|
RIGHTS.LIST_CONTRIBUTIONS,
|
||||||
RIGHTS.LIST_ALL_CONFIRMED_CONTRIBUTIONS,
|
RIGHTS.LIST_ALL_CONTRIBUTIONS,
|
||||||
])
|
])
|
||||||
export const ROLE_ADMIN = new Role('admin', Object.values(RIGHTS)) // all rights
|
export const ROLE_ADMIN = new Role('admin', Object.values(RIGHTS)) // all rights
|
||||||
|
|
||||||
|
|||||||
@ -65,9 +65,9 @@ export class ContributionResolver {
|
|||||||
return contributions.map((contribution) => new Contribution(contribution, new User(user)))
|
return contributions.map((contribution) => new Contribution(contribution, new User(user)))
|
||||||
}
|
}
|
||||||
|
|
||||||
@Authorized([RIGHTS.LIST_ALL_CONFIRMED_CONTRIBUTIONS])
|
@Authorized([RIGHTS.LIST_ALL_CONTRIBUTIONS])
|
||||||
@Query(() => ContributionListResult)
|
@Query(() => ContributionListResult)
|
||||||
async listAllConfirmedContributions(
|
async listAllContributions(
|
||||||
@Args()
|
@Args()
|
||||||
{ currentPage = 1, pageSize = 5, order = Order.DESC }: Paginated,
|
{ currentPage = 1, pageSize = 5, order = Order.DESC }: Paginated,
|
||||||
): Promise<ContributionListResult> {
|
): Promise<ContributionListResult> {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user