Commit Graph

33 Commits

Author SHA1 Message Date
Roberto Rosario
34311fb17e Cleanups, permissions separation into explicit module, absolute import update 2012-01-02 03:48:26 -04:00
Roberto Rosario
0f12364e0c Add ACLS_EDIT_ACL and ACLS_VIEW_ACL pero object access check 2011-12-25 03:23:44 -04:00
Roberto Rosario
53bf3d940d Added logging to the acls tag 2011-12-25 03:20:16 -04:00
Roberto Rosario
8ab692ddc8 Use self.content_type.model instead of name, rename holder to actor, add get_class_permission to the AccessEntry manager, Encapsulation class decapsulation for AccessEntry manager methods, add exception_on_empty to raise PermissionDenied when the result of a filtered list is empty 2011-12-25 03:19:34 -04:00
Roberto Rosario
3b884e8c8a Update get_allowed_class_objects to return a generator instead of a list, filter_objects_by_access to try return to return a queryset and failing that return a filtered list 2011-12-24 01:16:53 -04:00
Roberto Rosario
0fa3a07a73 Improve acl tag logic 2011-12-20 02:31:01 -04:00
Roberto Rosario
3338035232 Add convenience manager method filter_objects_by_access 2011-12-19 23:48:07 -04:00
Roberto Rosario
b93b227994 Add access checking method to AccessEntry class 2011-12-17 19:46:28 -04:00
Roberto Rosario
714f773b13 Add folder literal for content type icon 2011-12-17 19:45:13 -04:00
Roberto Rosario
ec1c5d78dd Add template tag to hangle acl in navigation 2011-12-17 19:44:23 -04:00
Roberto Rosario
79428117b8 Add new ObjectEncapsulation subclass ClassAccessHolder 2011-12-17 16:43:28 -04:00
Roberto Rosario
1f7b1bc904 Update new holder form to user HTML option groups and remove class permission current holders 2011-12-17 16:42:19 -04:00
Roberto Rosario
bdc0a965b4 Fix acls_class_acl_detail view 2011-12-17 16:41:31 -04:00
Roberto Rosario
574ef3c9c8 Update the default class acl setup views to a working state 2011-12-17 14:07:06 -04:00
Roberto Rosario
17b44387c9 Improve enclapsulated class unicode method, add grant and revoke method to the DefaultAccessEntry class 2011-12-17 14:06:12 -04:00
Roberto Rosario
2d28f23b9a Update the new acls holder form label 2011-12-17 14:04:17 -04:00
Roberto Rosario
5e76bc22f2 Add commented code for ideas 2011-12-14 09:12:05 -04:00
Roberto Rosario
00e5146686 Add acl app static media directory 2011-12-14 09:11:43 -04:00
Roberto Rosario
7dcaa1757a Initial class default ACLs views 2011-12-14 09:11:09 -04:00
Roberto Rosario
742b934bcc Initial db support for default classes ACLs 2011-12-14 09:10:45 -04:00
Roberto Rosario
ac4498de12 Add support for classes 2011-12-14 09:10:34 -04:00
Roberto Rosario
796a8fbdb5 Add acl revokation view 2011-12-13 11:45:49 -04:00
Roberto Rosario
418312bc8a Add new acl holder selector form 2011-12-13 11:35:14 -04:00
Roberto Rosario
2f803174b1 Update acls models to the new class based permissions 2011-12-13 11:34:39 -04:00
Roberto Rosario
c1fadd0840 Converted the acls app to the new class based permission system 2011-12-13 10:58:49 -04:00
Roberto Rosario
1557ae829b ACL grant view updates 2011-11-03 12:04:35 -04:00
Roberto Rosario
8a27b1866b Removed imported wrongly copied file 2011-10-29 02:34:38 -04:00
Roberto Rosario
b472383bc0 Only show the permissions the users hold on the ACL edit view 2011-10-29 02:26:48 -04:00
Roberto Rosario
0c87b3356f Improved the check_permissions_for_holder method, made method admin and staff users aware 2011-10-29 02:25:59 -04:00
Roberto Rosario
0c512ccaec Use source class as a cache namespace, more expesive lookups to the encapsulate method and made the get method lightweight 2011-10-28 21:47:46 -04:00
Roberto Rosario
3f9e79f0bc Added encapsulation and semi working acl edititing view 2011-10-27 07:44:51 -04:00
Roberto Rosario
acd23eebab ACL app updates, display generic object proper ACL holders list with content type icon widget 2011-10-24 20:34:01 -04:00
Roberto Rosario
7d1c000352 Initial models and managers to support ACLs for a generic object 2011-10-24 12:57:40 -04:00