diff --git a/CHANGELOG.md b/CHANGELOG.md index 0aeb3d5..f7830da 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - di on setting resolver, prevented signup settings to be visible in ui +- return admin of form also for admins ### Security diff --git a/src/resolver/form/form.resolver.ts b/src/resolver/form/form.resolver.ts index b50c2eb..27a1892 100644 --- a/src/resolver/form/form.resolver.ts +++ b/src/resolver/form/form.resolver.ts @@ -127,7 +127,7 @@ export class FormResolver { } @ResolveField('admin', () => UserModel) - @Roles('superuser') + @Roles('admin') async getAdmin( @Parent() parent: FormModel, @Context('cache') cache: ContextCache,