diff options
author | mr <mr@mrautenberg.de> | 2011-08-24 16:22:13 +0200 |
---|---|---|
committer | mr <mr@mrautenberg.de> | 2011-08-24 16:22:13 +0200 |
commit | db81a67c87a4f048f297d60ee60a7632f4595854 (patch) | |
tree | 37c2ec9767cb23164f7bd7ceb450c6e544f6df30 | |
parent | a8f6072f32ef5ae650216a4612d13eeb6b310c7e (diff) |
A&A do not show models without allow for GET request
-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. |