lib.decorators.authorizeΒΆ

../_images/03.jpg

myapp/lib/decorators.py:authorize()

As per usual, this decorator wraps the enclosed function func() call.

It takes the permission object passed in as argument and calls the permission’s check() function - which is expected to return True or False.

Previous topic

DemoController.privindex

Next topic

lib.auth.permissions.SignedIn.check

This Page