.. _03: ======================== lib.decorators.authorize ======================== .. image :: images/03.jpg :align: center :height: 544 :width: 923 :func:`myapp/lib/decorators.py:authorize` As per usual, this decorator wraps the enclosed function :func:`func` call. It takes the ``permission`` object passed in as argument and calls the permission's :func:`check` function - which is expected to return ``True`` or ``False``.