permission error on view tag raises HoboError.
Reported by Bryan Larsen | June 30th, 2010 @ 03:35 PM | in Hobo 1.1
<%=
raise HoboError, "view of non-viewable field '#{this_field}' of #{this_parent.typed_id rescue this_parent}" unless
can_view?
Does anybody have an issue with me changing this from HoboError to Hobo::PermissionDeniedError?
Comments and changes to this ticket
-
Bryan Larsen July 5th, 2010 @ 01:28 PM
We're certainly inconsistent.
form
returns a blank string on permission denied, and there are other examples. In my opinion, I'd fix the inconsistency by having everything throw PermissionDeniedError, but I understand your position.One thought: we could render a permission-denied tag, and then render things as you suggest. The default behavior for permission-denied would be to display debug info in devel mode and throw PermissionDeniedError in production mode. You could override it to display HTML comments so you could see what's going on in a view-source.
Now we just need a volunteer to code the suggestion...
-
Bryan Larsen November 12th, 2010 @ 11:36 PM
- State changed from new to resolved
(from [95b5e712d1698969b35fc7a182520080c2aeca64]) [#750 state:resolved] change HoboError to the more specific Hobo::PermissionDeniedError in https://github.com/tablatom/hobo/commit/95b5e712d1698969b35fc7a1825...
-
Bryan Larsen November 12th, 2010 @ 11:36 PM
(from [0e018b00c2c7450c3bff296156d000ac42a66358]) [#750] another HoboError -> Hobo::PermissionDeniedError https://github.com/tablatom/hobo/commit/0e018b00c2c7450c3bff296156d...
-
Bryan Larsen November 13th, 2010 @ 12:39 PM
(from [0fdd806f4fe91b2b120201642c09d4c7514d03ec]) [#750] another Hobo::Error -> Hobo::PermissionDeniedError https://github.com/tablatom/hobo/commit/0fdd806f4fe91b2b120201642c0...
-
Bryan Larsen November 13th, 2010 @ 12:39 PM
(from [cf3801c05b53ec258a2e1feb94e55b711d9506b6]) [#750] change Hobo::Error to the more specific Hobo::PermissionDeniedError in https://github.com/tablatom/hobo/commit/cf3801c05b53ec258a2e1feb94e...
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
People watching this ticket
Tags
Referenced by
- 750 permission error on view tag raises HoboError. (from [95b5e712d1698969b35fc7a182520080c2aeca64]) [#750 s...
- 750 permission error on view tag raises HoboError. (from [0e018b00c2c7450c3bff296156d000ac42a66358]) [#750] ...
- 750 permission error on view tag raises HoboError. (from [0fdd806f4fe91b2b120201642c09d4c7514d03ec]) [#750] ...
- 750 permission error on view tag raises HoboError. (from [cf3801c05b53ec258a2e1feb94e55b711d9506b6]) [#750] ...