From a6585af10b70c11a7e2dca3b3bc8e90e6131e847 Mon Sep 17 00:00:00 2001 From: mr Date: Tue, 11 Jan 2011 10:58:03 +0100 Subject: disable to predict models without authorization --- views/predict.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]} -- cgit v1.2.3