Commit Graph

1205 Commits

Author SHA1 Message Date
Roberto Rosario
7e9fbf4f47 Add ACL support to the linking app, convert import to absolute 2011-12-25 03:22:05 -04:00
Roberto Rosario
eb9fb7141d Simplify multi document views access checking logic 2011-12-25 03:21:22 -04:00
Roberto Rosario
5c74313948 Removed remarked code 2011-12-25 03:21:01 -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
b39a5bc903 Fix folder app ACL navigation 2011-12-25 03:16:54 -04:00
Roberto Rosario
a9c5caa994 Add the __str__ method and stored_permission proxy property to the Permission class 2011-12-25 03:15:41 -04:00
Roberto Rosario
de49d4a588 Pass a copy of the entire context to the navigation subtemplate when calling it from sublist template 2011-12-25 03:14:19 -04:00
Roberto Rosario
80fab8b70d Add and enable the new PERMISSION_DOCUMENT_NEW_VERSION permission 2011-12-25 03:13:17 -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
e7c7ec0636 Remove remarked code 2011-12-24 01:16:32 -04:00
Roberto Rosario
c187e77acc Fix document_clear_transformations and document_delete multi document ACL calculation 2011-12-24 01:10:10 -04:00
Roberto Rosario
54cb1d29e3 Remove the requirement for global permission for the document view and document recent view
User may not have the global permission, but still have permission to view certain documents via ACL
2011-12-24 01:08:57 -04:00
Roberto Rosario
c4508f486b Update folder_view view to use document_list view, fix all absolute related import problems 2011-12-20 02:32:43 -04:00
Roberto Rosario
f82a5091ed Update navigation tag to enable ACLs to work with list's items 2011-12-20 02:31:18 -04:00
Roberto Rosario
0fa3a07a73 Improve acl tag logic 2011-12-20 02:31:01 -04:00
Roberto Rosario
fed62fb3c3 Rever to absolute import until circular import error is found 2011-12-19 23:54:29 -04:00
Roberto Rosario
2afeabf03e Update folders app to use relative import, move permission to a separate file, import acl usage 2011-12-19 23:49:33 -04:00
Roberto Rosario
4c17910e8c Conver object_list view to use AccessEntry.objects.filter_objects_by_access for simplicity 2011-12-19 23:48:46 -04:00
Roberto Rosario
3338035232 Add convenience manager method filter_objects_by_access 2011-12-19 23:48:07 -04:00
Roberto Rosario
4cd36026b9 Add migrations to convert existing databases to the class based permission system 2011-12-19 17:06:41 -04:00
Roberto Rosario
00875ddea2 Return a sorted permisions list by namespace name 2011-12-19 16:27:37 -04:00
Roberto Rosario
c7d1f9aae1 Enable document type permissions 2011-12-17 19:47:17 -04:00
Roberto Rosario
65bc6c88ab Fix typo from method rename 2011-12-17 19:46:59 -04:00
Roberto Rosario
b93b227994 Add access checking method to AccessEntry class 2011-12-17 19:46:28 -04:00
Roberto Rosario
367180a3ec Add document type permissions 2011-12-17 19:45:54 -04:00
Roberto Rosario
405eedfeb2 Add document level access control 2011-12-17 19:45:41 -04:00
Roberto Rosario
714f773b13 Add folder literal for content type icon 2011-12-17 19:45:13 -04:00
Roberto Rosario
ef1e995177 Add acl tag to the navigation template 2011-12-17 19:44:47 -04:00
Roberto Rosario
ec1c5d78dd Add template tag to hangle acl in navigation 2011-12-17 19:44:23 -04:00
Roberto Rosario
8baa84f96b Add folder level access control 2011-12-17 19:44:04 -04:00
Roberto Rosario
84410ac98e Reenable label field until DB migration are calculated 2011-12-17 16:44:01 -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
67485f82a9 Improve the usability of the new holder form
By using more descriptive texts
2011-12-17 14:07:38 -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
85f05ebdcf Add the tag append and tag remover permissions and document class permissions 2011-12-17 14:05:31 -04:00
Roberto Rosario
175a06182c Add the ACL_VIEW and ACL_EDIT permissions and document class permissions 2011-12-17 14:04:58 -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
b1c495e22a Merge branch 'development' into feature/ACL_support_Default_class_ACL 2011-12-13 15:02:43 -04:00
Roberto Rosario
4c86a9823a Remove db_index from TextField class fields, this closes issue #12 2011-12-13 13:00:19 -04:00
Roberto Rosario
15e935173e Update complete Italian translation 2011-12-13 12:01:59 -04:00
Roberto Rosario
1c91bfd001 Disable document signature verification until circular import is found 2011-12-13 11:50:25 -04:00