summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormr <mr@mrautenberg.de>2011-01-11 10:58:03 +0100
committermr <mr@mrautenberg.de>2011-01-11 10:58:03 +0100
commita6585af10b70c11a7e2dca3b3bc8e90e6131e847 (patch)
tree16fd1ff0a2c34c5bc3371cdaac2985d2540eff33
parent5f97466a1309dcada878c6d5a5d28009220ce13b (diff)
disable to predict models without authorization
-rw-r--r--views/predict.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/views/predict.haml b/views/predict.haml
index cd5c0d4..7d81402 100644
--- a/views/predict.haml
+++ b/views/predict.haml
@@ -26,7 +26,7 @@
- @models.each do |model|
%label{:for => model.id}
= model.name
- %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id}
+ %input{:type => 'checkbox', :name => "selection[#{model.id}]", :value => true, :id => model.id, :disabled => !is_authorized(model.uri, "POST")}
%br
%input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]}