Commit graph

9 commits

Author SHA1 Message Date
Jannis Leidel
c3208b2b34 Added date_requested and date_approved fields to Permission model, to accompany the permission request changes. This requires a schema change.
Fixed legacy permission name "approve_permission_requests".
Fixed forms to not bypass validation for permission requests.
Combined the templates for permission requests forms and permission forms in one file.
Added ability to withdraw a permission request, along the lines of the permission denial.
Updated URLs to be more awesome.
Refactored template tags to be classbased, easier to use.
Changed signature of permission_form templatetag and added ability to pass a template name with which the form should be rendered.
Combined permission_form and permission_request_form in one template tag class.
Added utility to determine best URL to redirect to after successful permission (request) creation.
Made sure the new GET access to the permission form views is secure. Please test!
Added new "approve_permissions" admin action to easily approve permissions in the admin.
Updated default templates to use the new features.
Now dance.
2009-07-23 07:33:34 +02:00
Diego Búrigo Zacarão
a92e3da0fd Added Permission Request feature
- Permissions are considered requests until the 'approved'
   field be set to True
2009-07-22 12:05:07 -03:00
Jannis Leidel
bf0b9c3678 Moved add_url_for_obj function to templatetag lib and registered it as a template tag 2009-07-14 18:51:12 +02:00
Jannis Leidel
1cfcf334ce Overhaul to the templatetags. New templatetag get_permission to perform a specific permission check. 2009-07-07 00:20:36 +02:00
Jannis Leidel
18969fa389 Fixed oversight in example flatpage template. 2009-07-06 19:03:33 +02:00
Jannis Leidel
3e047dc5fe Updated example project to use the latest additions to django-authority 2009-06-22 01:07:26 +02:00
Jannis Leidel
ff0150398c Updated the FlatPage permissions to work with the latest changes. Added a custom permission check 'top_secret'. Added more examples to flatpage template. 2009-06-12 01:12:51 +02:00
Jannis Leidel
1676c12e30 made flatpage template nicer, heh 2009-06-08 13:19:14 +02:00
Jannis Leidel
96a80d27a1 Added example project 2009-06-08 12:03:49 +02:00