From 0a1a21dcce418e655426b75bd4c2f056959e22b5 Mon Sep 17 00:00:00 2001 From: Michael Schramm Date: Thu, 11 Jun 2020 16:48:00 +0200 Subject: [PATCH] add demo links and fix setting.service --- CHANGELOG.md | 1 + src/resolver/form/form.resolver.ts | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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,