summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2014-04-18 12:39:27 +0200
committerAzul <azul@leap.se>2014-04-18 12:39:27 +0200
commit966e390d401b84dad98127e647d2ec634f1cbc15 (patch)
tree64ddc12302e0a2bd86a38ce7b0f03658cfe88c89 /app/models
parent9216ab8252246a263c5d17f6755a7d3887145f94 (diff)
bringing back empty cert prefixes
if neither limited nor unlimited certs are allowed there will be no prefix. Not sure if this is desired - but it's the way things used to be before the refactoring
Diffstat (limited to 'app/models')
-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