Skip to content

Commit

Permalink
Doc update to stress :attribute_check
Browse files Browse the repository at this point in the history
(Closes stffn#58, thanks benlangfeld)
  • Loading branch information
stffn committed Jun 18, 2010
1 parent e962259 commit 8a1e369
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions README.rdoc
Expand Up @@ -277,8 +277,9 @@ Privilege hierarchies may be context-specific, e.g. applicable to :employees.
privilege :manage, :employees, :includes => :increase_salary
end

For more complex use cases, authorizations need to be based on attributes. E.g.
if a branch admin should manage only employees of his branch (see
For more complex use cases, authorizations need to be based on attributes. Note
that you then also need to set :attribute_check => true in controllers for filter_access_to.
E.g. if a branch admin should manage only employees of his branch (see
Authorization::Reader in the API docs for a full list of available operators):

authorization do
Expand Down

0 comments on commit 8a1e369

Please sign in to comment.