From 291e8d3eed88fe714fb74ad897ac2c67347a85ff Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 25 Jul 2017 20:17:28 +0200 Subject: Add ability to limit user registrations --- client/src/app/core/config/config.service.ts | 2 +- client/src/app/core/menu/menu.component.html | 2 +- client/src/app/core/menu/menu.component.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'client/src') diff --git a/client/src/app/core/config/config.service.ts b/client/src/app/core/config/config.service.ts index b8cb15e84..acdc12cc6 100644 --- a/client/src/app/core/config/config.service.ts +++ b/client/src/app/core/config/config.service.ts @@ -10,7 +10,7 @@ export class ConfigService { private config: ServerConfig = { signup: { - enabled: false + allowed: false } } diff --git a/client/src/app/core/menu/menu.component.html b/client/src/app/core/menu/menu.component.html index 63a1c03c5..fb4c4a6a9 100644 --- a/client/src/app/core/menu/menu.component.html +++ b/client/src/app/core/menu/menu.component.html @@ -14,7 +14,7 @@ - + Signup diff --git a/client/src/app/core/menu/menu.component.ts b/client/src/app/core/menu/menu.component.ts index b725f64a7..669fc6572 100644 --- a/client/src/app/core/menu/menu.component.ts +++ b/client/src/app/core/menu/menu.component.ts @@ -36,8 +36,8 @@ export class MenuComponent implements OnInit { ) } - isRegistrationEnabled () { - return this.configService.getConfig().signup.enabled + isRegistrationAllowed () { + return this.configService.getConfig().signup.allowed } isUserAdmin () { -- cgit v1.2.3