aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
Diffstat (limited to 'client/src')
-rw-r--r--client/src/app/core/server/server.service.ts3
-rw-r--r--client/src/app/menu/menu.component.ts3
2 files changed, 4 insertions, 2 deletions
diff --git a/client/src/app/core/server/server.service.ts b/client/src/app/core/server/server.service.ts
index c5353023b..ccae5a151 100644
--- a/client/src/app/core/server/server.service.ts
+++ b/client/src/app/core/server/server.service.ts
@@ -34,7 +34,8 @@ export class ServerService {
34 }, 34 },
35 serverVersion: 'Unknown', 35 serverVersion: 'Unknown',
36 signup: { 36 signup: {
37 allowed: false 37 allowed: false,
38 allowedForCurrentIP: false
38 }, 39 },
39 transcoding: { 40 transcoding: {
40 enabledResolutions: [] 41 enabledResolutions: []
diff --git a/client/src/app/menu/menu.component.ts b/client/src/app/menu/menu.component.ts
index 4c35bb3a5..69216e215 100644
--- a/client/src/app/menu/menu.component.ts
+++ b/client/src/app/menu/menu.component.ts
@@ -52,7 +52,8 @@ export class MenuComponent implements OnInit {
52 } 52 }
53 53
54 isRegistrationAllowed () { 54 isRegistrationAllowed () {
55 return this.serverService.getConfig().signup.allowed 55 return this.serverService.getConfig().signup.allowed &&
56 this.serverService.getConfig().signup.allowedForCurrentIP
56 } 57 }
57 58
58 getFirstAdminRightAvailable () { 59 getFirstAdminRightAvailable () {