diff options
author | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-20 18:52:40 +0200 |
---|---|---|
committer | Joachim Filip Ignacy Bartosik <jbartosik@gmail.com> | 2010-07-27 23:02:45 +0200 |
commit | fee49d0a2550e9115f229e41593b5564055e0376 (patch) | |
tree | 66e0d69ccefdfca39e92be5370e927becdbb1cef | |
parent | Reorganized homepage (grouped elements relevant for each role together) (diff) | |
download | recruiting-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.dryml | 1 |
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> |