declarative-authorization
multiple conditions to user in declarative_authorization if_attribute
I have 4 different levels of access; admin, partner, employee and client. Admin, Partner, and Employee have administrative access over clients. Basically开发者_如何学编程 what I have done is created a[详细]
2023-03-01 16:40 分类:问答Help with rails declarative_authorization
I cant get this rule to be enforced at all... it allows anyone to get to this action. Here\'s my rule[详细]
2023-02-19 01:29 分类:问答Protect sensitive attributes with declarative_authorization
What\'s a cool way to protect attributes by role using declarative_authorization?For example, a user can edit his contact information but not his role.[详细]
2023-02-15 23:48 分类:问答Why can I NOT access an action for a controller that I leave out of filter_access_to statement in Rails 3?
I am using declarative_authorization and I have the following in a controller: filte开发者_开发技巧r_access_to :index, :new, :edit, :step, :create, :update, :destroy[详细]
2023-02-15 04:22 分类:问答declarative auth problem with if_attribute
my authorization rules: role :tester do has_permission_on [:regression_test_test_runs, :regression_test_jobs], :to => :manage[详细]
2023-02-15 00:27 分类:问答How do I get rid of blank error page with "You are not allowed to access this action." in decl_auth in Rails 3?
The authorization works nicely, but when a user accesses an action/controller that they don\'t have access to, they see:[详细]
2023-02-12 07:10 分类:问答declarative_authorization's contains and inherited resources
i have rails3 app with declarative_authorization and inherited_resources gems installed. Let me show you some code from my app:[详细]
2023-02-12 04:30 分类:问答declarative authorization and has_and_belongs_to_many
I have a little problem with declarative-authorization. I have a User and Role Model with a has_and_belongs_to_many association.[详细]
2023-02-11 01:29 分类:问答using a roles mask to find all users who have a certain role
I\'ve been using a bitmask in a current project for keeping track of user roles, but now have a situation where I need to be able to do a find for all users who are a certain role.[详细]
2023-02-09 06:44 分类:问答Rails 3 subdomain
I would like to publish my application to a selected set of individuals for a private beta.I created a sub-domain for this task: beta.company.com.[详细]
2023-02-09 06:17 分类:问答