diff options
-rw-r--r-- | views/models.haml | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/views/models.haml b/views/models.haml index a1ef8ba..e4f35b6 100644 --- a/views/models.haml +++ b/views/models.haml @@ -20,6 +20,7 @@ - if @models - @models.each do |model| - = haml :model, :locals=>{:model=>model}, :layout => false + - if is_authorized(model.web_uri, "GET") + = haml :model, :locals=>{:model=>model}, :layout => false -if @models.size == 0 .notice There are currently no models. You have to create a model first. |