mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
Change error message Admin can not answer on own contribution.
This commit is contained in:
parent
04b96bac2f
commit
ced14bd752
@ -718,7 +718,7 @@ export class AdminResolver {
|
||||
throw new Error('Contribution not found')
|
||||
}
|
||||
if (contribution.userId === user.id) {
|
||||
throw new Error('Can not answer on own contribution')
|
||||
throw new Error('Admin can not answer on own contribution')
|
||||
}
|
||||
contributionMessage.contributionId = contributionId
|
||||
contributionMessage.createdAt = new Date()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user