summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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]}