summaryrefslogtreecommitdiffstats
path: root/lib/puppet/rails
diff options
context:
space:
mode:
authorBrice Figureau <brice-puppet@daysofwonder.com>2009-03-30 23:10:19 +0200
committerBrice Figureau <brice-puppet@daysofwonder.com>2009-04-23 20:52:03 +0200
commitc0c824548e03e603f5a51c61262ae6a58e7549fb (patch)
treec2fff712f555006a7569ec1b2b4324311532b375 /lib/puppet/rails
parentaac996ed17e0ec72c5098b1225eb159aae4901fc (diff)
downloadpuppet-c0c824548e03e603f5a51c61262ae6a58e7549fb.tar.gz
puppet-c0c824548e03e603f5a51c61262ae6a58e7549fb.tar.xz
puppet-c0c824548e03e603f5a51c61262ae6a58e7549fb.zip
Refactor rest authorization to raise exceptions deeper
The idea is to raise an AuthorizationException at the same place we check the authorization instead of in an upper level to be able to spot where the authorization took place in the exception backtrace. Moreover, this changes also makes Rights::allowed? to return the matching acl so that the upper layer can have a chance to report which ACL resulted in the match. Signed-off-by: Brice Figureau <brice-puppet@daysofwonder.com>
Diffstat (limited to 'lib/puppet/rails')
0 files changed, 0 insertions, 0 deletions