Comments on: declarative_authorization 0.4 http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/ Security, Usability, Rails Tue, 14 Feb 2012 05:05:58 +0000 hourly 1 http://wordpress.org/?v=3.1.2 By: Steffen Bartsch http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-4807 Steffen Bartsch Thu, 15 Apr 2010 07:28:48 +0000 http://steffenbartsch.com/blog/?p=139#comment-4807 You are right. Now it's correct. You are right. Now it’s correct.

]]>
By: Matt Schick http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-4805 Matt Schick Thu, 15 Apr 2010 02:11:33 +0000 http://steffenbartsch.com/blog/?p=139#comment-4805 Not to nitpick, but you're missing a closing curly brace in your first example for your improved DSL, it should be as follows: has_permission_on :companies, :to => :read do if_attribute :branches => { :manager => { :last_name => is { user.last_name } } } if_permitted_to :read, :branches end Not to nitpick, but you’re missing a closing curly brace in your first example for your improved DSL, it should be as follows:

has_permission_on :companies, :to => :read do
if_attribute :branches => {
:manager => { :last_name => is { user.last_name } } }
if_permitted_to :read, :branches
end

]]>
By: Steffen Bartsch http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3723 Steffen Bartsch Thu, 31 Dec 2009 09:32:44 +0000 http://steffenbartsch.com/blog/?p=139#comment-3723 For usage questions, please turn to the mailing list http://groups.google.com/group/declarative_authorization/ Actually, this should just work. Maybe you have an error elsewhere in your code. For usage questions, please turn to the mailing list http://groups.google.com/group/declarative_authorization/

Actually, this should just work. Maybe you have an error elsewhere in your code.

]]>
By: john http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3720 john Thu, 31 Dec 2009 02:58:49 +0000 http://steffenbartsch.com/blog/?p=139#comment-3720 How to set permission for a custom method? has_permission_on :foos, :to => :ownmethod doesnt work (is blocked by default) :/ How to set permission for a custom method?
has_permission_on :foos, :to => :ownmethod doesnt work (is blocked by default) :/

]]>
By: Austin Ginder http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3523 Austin Ginder Fri, 27 Nov 2009 21:21:27 +0000 http://steffenbartsch.com/blog/?p=139#comment-3523 my last comment got messed up, not sure how. Just to clarify I did figure it out then. my last comment got messed up, not sure how. Just to clarify I did figure it out then.

]]>
By: Austin Ginder http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3522 Austin Ginder Fri, 27 Nov 2009 16:17:10 +0000 http://steffenbartsch.com/blog/?p=139#comment-3522 I found the namespace documentation a little hard to follow. It would be nice if the documentation said something like. Given the following Controller: class SubscriptionAdmin::AccountsController [:index, :show, :new, :create, :edit, :update, :destroy] end end I found the namespace documentation a little hard to follow. It would be nice if the documentation said something like.

Given the following Controller:
class SubscriptionAdmin::AccountsController [:index, :show, :new, :create, :edit, :update, :destroy]
end

end

]]>
By: John http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3515 John Tue, 24 Nov 2009 01:43:43 +0000 http://steffenbartsch.com/blog/?p=139#comment-3515 Hi there. I'm just learning rails and I'm looking for authorization solutions. This one looks really interesting, but your github links are all giving me 404.. oops never mind looks like github is having issues in general :) OK I'll keep my eye on this an hope to learn more soon! Thanks! Hi there. I’m just learning rails and I’m looking for authorization solutions. This one looks really interesting, but your github links are all giving me 404.. oops never mind looks like github is having issues in general :)
OK I’ll keep my eye on this an hope to learn more soon!
Thanks!

]]>
By: Priit http://steffenbartsch.com/blog/2009/11/declarative_authorization-0-4/comment-page-1/#comment-3503 Priit Thu, 19 Nov 2009 07:18:03 +0000 http://steffenbartsch.com/blog/?p=139#comment-3503 Thanks for the update, just let you know that declarative authorization is the best one out there imho. In long run it's really much easier to manage rules in one place than searching around code. Cheers! Thanks for the update, just let you know that declarative authorization is the best one out there imho. In long run it’s really much easier to manage rules in one place than searching around code. Cheers!

]]>