Skip to content
Closed
Prev Previous commit
Next Next commit
updated the link from ACL to the data permission voters
  • Loading branch information
Michael Klein committed Jan 22, 2014
commit 76a9db0971b80e090de2f84e712b7247f0c2d551
2 changes: 1 addition & 1 deletion cookbook/security/acl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ the ACL system comes in.
Using ACL's isn't trivial, and for simpler use cases, it may be overkill.
If your permission logic could be described by just writing some code (e.g.
to check if a Blog is owned by the current User), then consider using
:doc:`voters </cookbook/security/voters>`. A voter is passed the object
:doc:`voters </cookbook/security/dataPermissionVoters>`. A voter is passed the object
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This document doesn't exist.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how is the link then for

.. index:: single: Security; Data Permission Voters 

with dashes? sorry I could not figure out.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The doc directive references documents (e.g. filenames). So, if you want to reference your newly created voter chapter, this should like this:

:doc:`voters </cookbook/security/voters_data_permission>`
being voted on, which you can use to make complex decisions and effectively
implement your own ACL. Enforcing authorization (e.g. the ``isGranted``
part) will look similar to what you see in this entry, but your voter
Expand Down