Skip to content

Commit

Permalink
acl doc
Browse files Browse the repository at this point in the history
  • Loading branch information
mgaitan committed Oct 6, 2014
1 parent d9acf13 commit 1ad569e
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/acl.rst
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ If you are writing your own plugin, you can use the ACL reusing the view decorat
``delete_page``, *user1* still don't be allowed to request a view that requires both ``change_page`` and ``delete_page``.


Also, you can use the low-level helper :func:`acl.check_perms` ::
Also, you can use the low-level helper :func:`acl.check_perms`:

.. code-block:: python
Expand All @@ -101,7 +101,9 @@ or::
{% check_perms "perm1[, perm2, ...]" for user in "slug" as "context_var" %}


For example (assuming ``page`` objects are available from *context*)::
For example (assuming ``page`` objects are available from *context*)

.. code-block:: html

{% load waliki_tags %}

Expand All @@ -111,7 +113,3 @@ For example (assuming ``page`` objects are available from *context*)::
{% endif %}






0 comments on commit 1ad569e

Please sign in to comment.