Skip to content

Commit

Permalink
[#750 state:resolved] change HoboError to the more specific Hobo::Per…
Browse files Browse the repository at this point in the history
…missionDeniedError in <view>
  • Loading branch information
bryanlarsen committed Nov 12, 2010
1 parent 38f1ba0 commit 95b5e71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hobo/taglibs/rapid_core.dryml
Expand Up @@ -414,7 +414,7 @@ Assuming the context is a blog post...
<view:created_at no-wrapper/> -> June 09, 2008 15:36
-->
<def tag="view" attrs="inline, block, if-blank, no-wrapper, truncate"><%=
raise HoboError, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless
raise Hobo::PermissionDeniedError, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless
can_view?

res = if this.nil? && if_blank.nil?
Expand Down

0 comments on commit 95b5e71

Please sign in to comment.