Jannis Leidel
|
d8542ffb87
|
Blacken the code.
|
2020-02-07 10:50:47 +01:00 |
|
Jason Ward
|
d07d8b6f90
|
refs #12: print functions in all the places
|
2013-03-18 19:11:38 -04:00 |
|
Jannis Leidel
|
340cbb9c73
|
Fixes issue #2 - Adds ability to pass non-lookup parameters in decorator to permission check.
|
2009-07-10 15:55:25 +02:00 |
|
Jannis Leidel
|
b1356e8761
|
Back to tuple style syntax for permission required decorator.
|
2009-07-06 21:57:16 +02:00 |
|
Jannis Leidel
|
8aceec2104
|
Updated example for permission_required_or_403 decorator to follow new syntax.
|
2009-07-06 16:07:24 +02:00 |
|
Jannis Leidel
|
6740e52369
|
Introduce a new syntax for the decorator to not rely on the order of the arguments passed to the view function. That failed because kwargs is a dict, d'oh.
|
2009-07-06 16:03:56 +02:00 |
|
Jannis Leidel
|
287d2eccd5
|
Fixed decorator to only check for permissions if user is logged in. Added permission_denied view to be used when permission check unsuccessful, e.g. with the new permission_required_or_403 decorator. The permission_required decorator will redirect to the login form by default.
|
2009-07-03 15:41:21 +02:00 |
|
Jannis Leidel
|
3e047dc5fe
|
Updated example project to use the latest additions to django-authority
|
2009-06-22 01:07:26 +02:00 |
|