summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/models/anonymous_service_level.rb2
-rw-r--r--app/models/service_level.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/models/anonymous_service_level.rb b/app/models/anonymous_service_level.rb
index c51ce9e..47b7cfb 100644
--- a/app/models/anonymous_service_level.rb
+++ b/app/models/anonymous_service_level.rb
@@ -5,7 +5,7 @@ class AnonymousServiceLevel
def cert_prefix
if APP_CONFIG[:allow_limited_certs]
APP_CONFIG[:limited_cert_prefix]
- else
+ elsif APP_CONFIG[:allow_unlimited_certs]
APP_CONFIG[:unlimited_cert_prefix]
end
end
diff --git a/app/models/service_level.rb b/app/models/service_level.rb
index 06ad202..5dd8838 100644
--- a/app/models/service_level.rb
+++ b/app/models/service_level.rb
@@ -19,7 +19,7 @@ class ServiceLevel
def cert_prefix
if limited_cert?
APP_CONFIG[:limited_cert_prefix]
- else
+ elsif APP_CONFIG[:allow_unlimited_certs]
APP_CONFIG[:unlimited_cert_prefix]
end
end