summaryrefslogtreecommitdiff
path: root/provider_base/provider.json
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2015-08-03 14:45:16 -0700
committerelijah <elijah@riseup.net>2015-08-03 14:45:16 -0700
commit478987d564e96c123ae243b1f6e089e00df20fcf (patch)
treeec7f3e3f66583fb8dcb34bd188daae768cf3fc08 /provider_base/provider.json
parent738e77a729813901db8725cacfb15f4150fd49d2 (diff)
allow_registration should always be false if enrollment_policy is 'closed'
Diffstat (limited to 'provider_base/provider.json')
-rw-r--r--provider_base/provider.json2
1 files changed, 1 insertions, 1 deletions
diff --git a/provider_base/provider.json b/provider_base/provider.json
index 60ad2a9e..9b6e73ca 100644
--- a/provider_base/provider.json
+++ b/provider_base/provider.json
@@ -32,7 +32,7 @@
"allow_free": "= provider.service.levels.select {|l| l['rate'].nil?}.any?",
"allow_paid": "= provider.service.levels.select {|l| !l['rate'].nil?}.any?",
"allow_anonymous": "= provider.service.levels.select {|l| l['name'] == 'anonymous'}.any?",
- "allow_registration": "= provider.service.levels.select {|l| l['name'] != 'anonymous'}.any?",
+ "allow_registration": "= provider.enrollment_policy != 'closed' && provider.service.levels.select {|l| l['name'] != 'anonymous'}.any?",
"allow_limited_bandwidth": "= provider.service.levels.select {|l| l['bandwidth'] == 'limited'}.any?",
"allow_unlimited_bandwidth": "= provider.service.levels.select {|l| l['bandwidth'].nil?}.any?"
},