aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-20 18:52:40 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-27 23:02:45 +0200
commitfee49d0a2550e9115f229e41593b5564055e0376 (patch)
tree66e0d69ccefdfca39e92be5370e927becdbb1cef
parentReorganized homepage (grouped elements relevant for each role together) (diff)
downloadrecruiting-webapp-fee49d0a2550e9115f229e41593b5564055e0376.tar.gz
recruiting-webapp-fee49d0a2550e9115f229e41593b5564055e0376.tar.bz2
recruiting-webapp-fee49d0a2550e9115f229e41593b5564055e0376.zip
<view> for CheckList now checks if user can view it
-rw-r--r--app/views/taglibs/views.dryml1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/views/taglibs/views.dryml b/app/views/taglibs/views.dryml
index 6176017..fcbec6d 100644
--- a/app/views/taglibs/views.dryml
+++ b/app/views/taglibs/views.dryml
@@ -16,5 +16,6 @@
</def>
<def tag="view" for="RichTypes::CheckList">
+ <%raise HoboError, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless can_view?%>
<input disabled/>
</def>