diff options
author | elijah <elijah@riseup.net> | 2015-08-03 14:45:16 -0700 |
---|---|---|
committer | elijah <elijah@riseup.net> | 2015-08-03 14:45:16 -0700 |
commit | 478987d564e96c123ae243b1f6e089e00df20fcf (patch) | |
tree | ec7f3e3f66583fb8dcb34bd188daae768cf3fc08 | |
parent | 738e77a729813901db8725cacfb15f4150fd49d2 (diff) |
allow_registration should always be false if enrollment_policy is 'closed'
-rw-r--r-- | provider_base/provider.json | 2 |
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?" }, |