declarative-authorization
Ruby: Declarative_authorization polymorphic associations
I have two models (Item and Theme).They are both owned by a third model Users with a has_many association (User has many Themes and Items). Both Item and Theme have_many :images.[详细]
2023-01-14 04:32 分类:问答Dynamic Role Authorization in Rails using a database. Declarative Authorization the best choice?
I will need to provide dynamic role assignments (Roles/ Privileges) .More clearly, an end user should be able to create a role, assign permissions to a new user. So I was thinking of storingroles and[详细]
2023-01-12 21:45 分类:问答declarative authorization filter_access_to
I am attempting to secure a Rails3 controller using declarative_authorization. The controller has the 7, RESTful actions, three custom member actions (activate, deactivate, copy), and one custom coll[详细]
2023-01-11 04:29 分类:问答Determining current_user with declarative_authorization and authlogic
I use authlogic to authenticate users. In my controllers I use current_user, defined (as documented) as follows:[详细]
2023-01-09 03:06 分类:问答declarative_authorization: control access to nested resource that doesn't have an explicit model
I have a model that allows a User to mark other Users as Favorites. This HABTM relationship is defined in the User model:[详细]
2023-01-08 01:34 分类:问答Declarative authorization and the if_attribute not working
I\'ve been having almost the same issues as Victor Martin (you can see the questions asked here). I\'ve got declarative authorization working for just about everything that doesn\'t involve using con[详细]
2023-01-02 06:22 分类:问答Is devise compatible with declarative_authorization?
Just asking whenever devise authentication mechanism for Rails does not conflict with declarative_authorization.[详细]
2022-12-29 20:45 分类:问答declarative_authorization and /authorization_rules access problem
i have configured to use authlogic and declarative_authorization and configured authorization_rules.rb. All is fine but on attemp to access localhost/authorization_rules i see \"You are not allowed to[详细]
2022-12-29 09:06 分类:问答What are people's opinions vis-a-vis my choice of authorization plugins?
I\'m slowly but surely putting together my first rails app (first web-app of any kind in fact - I\'m not really a programmer) and it\'s time to set up a user registration/login system. The nature of m[详细]
2022-12-28 13:10 分类:问答declarative_authorization permissions on roles
I\'m trying to add authorization to a rather large app that already exists, but I have to obfuscate the details a bit.[详细]
2022-12-27 16:29 分类:问答