]> git.openstreetmap.org Git - rails.git/commitdiff
Implement the cancan filters for diary entries
authorChris Flipse <cflipse@gmail.com>
Sat, 9 Jun 2018 20:35:17 +0000 (16:35 -0400)
committerChris Flipse <cflipse@gmail.com>
Sun, 17 Jun 2018 17:57:06 +0000 (13:57 -0400)
Access logic is not _entirely_ exported from the controller,
unfortunately.  For interface reasons, some actions which require admin
have to be listed within the controller's deny_access method.

This is required because, being a default-deny system, cancancan
_cannot_ tell you the reason you were denied access; and so
the "nice" feedback presenting next steps can't be gleaned from
the exception


No differences found