summaryrefslogtreecommitdiff
path: root/certs/app
diff options
context:
space:
mode:
authorAzul <azul@leap.se>2013-02-25 12:35:00 +0100
committerAzul <azul@leap.se>2013-02-25 12:35:00 +0100
commita314d1265bcf7b0c6dd66d61d03e1d2a7545cfb8 (patch)
tree9a0d17f49b03cb1f79d97717def60353795124cb /certs/app
parent1023cac35016bb1a89864d10ac89acabe86cf227 (diff)
enable free certs in the controller
Diffstat (limited to 'certs/app')
-rw-r--r--certs/app/controllers/certs_controller.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/certs/app/controllers/certs_controller.rb b/certs/app/controllers/certs_controller.rb
index 6db270c..6099ac0 100644
--- a/certs/app/controllers/certs_controller.rb
+++ b/certs/app/controllers/certs_controller.rb
@@ -1,10 +1,8 @@
class CertsController < ApplicationController
- before_filter :authorize
-
# GET /cert
def show
- @cert = ClientCertificate.new
+ @cert = ClientCertificate.new(free: !logged_in?)
render :text => @cert.key + @cert.cert, :content_type => 'text/plain'
end