Re: [Rails] authlogic with declarative authorization

2010-01-02 Thread Rails ROR
Hello I have only 2 roles 1. admin and the other is the author This is my authorization_roles.rb file role :author, :title => "Author" do description "The default role for Author" has_permission_on [:publishers,:subjects,:courses], :to => [:new, :create,:show] end role :admin do ha

Re: [Rails] authlogic with declarative authorization

2010-01-01 Thread Rails ROR
Hi, Oops! sorry that i couldn't post you the exact details. When i log in as the admin , i should be able to perform all the operations but some how the admin is also restricted to perform a new or a create action. I even tried with acl9. I think i am missing some basic point. Please tell me tha

Re: [Rails] authlogic with declarative authorization

2010-01-01 Thread Rick DeNatale
On Fri, Jan 1, 2010 at 2:21 AM, Rails ROR wrote: > Hi Everybody, > > I am working on authlogic with declarative authorization. > > I created the authorization rules for guest, admin and superadmin. > > I have publishers and subjects after one logs in. > > When a guest logs in he has an authority t

[Rails] authlogic with declarative authorization

2009-12-31 Thread Rails ROR
Hi Everybody, I am working on authlogic with declarative authorization. I created the authorization rules for guest, admin and superadmin. I have publishers and subjects after one logs in. When a guest logs in he has an authority to view, edit and show,create but not delete a publisher. When i