fix di on settings resolver
This commit is contained in:
parent
764ed88ff0
commit
d23ec38025
@ -10,6 +10,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
|
||||
### Added
|
||||
### Changed
|
||||
### Fixed
|
||||
|
||||
- di on setting resolver, prevented signup settings to be visible in ui
|
||||
|
||||
### Security
|
||||
|
||||
## [0.9.4] - 2020-06-09
|
||||
|
||||
@ -1,5 +1,7 @@
|
||||
import {Injectable} from '@nestjs/common'
|
||||
import {Roles} from '../../decorator/roles.decorator'
|
||||
|
||||
@Injectable()
|
||||
export class SettingMutation {
|
||||
@Roles('superuser')
|
||||
setSetting(key: string, value: string) {
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import {Injectable} from '@nestjs/common'
|
||||
import {ConfigService} from '@nestjs/config'
|
||||
import {Args, ID, Query} from '@nestjs/graphql'
|
||||
import {Roles} from '../../decorator/roles.decorator'
|
||||
@ -8,6 +9,7 @@ import {UserModel} from '../../dto/user/user.model'
|
||||
import {UserDocument} from '../../schema/user.schema'
|
||||
import {SettingService} from '../../service/setting.service'
|
||||
|
||||
@Injectable()
|
||||
export class SettingResolver {
|
||||
private publicKeys: string[] = [
|
||||
'SIGNUP_DISABLED',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user