Nested user folders
Created by: rosarior
Imported comments:
By rosarior on 2014-10-18 06:13:23 UTC
Postponing this feature, testing showed that a nested permission update needs to be created.
Folder A, has folder B as child which has folder C as child itself. A -> B -> C when an user tries to access folder C we need to check if he was permissions from folders B and A too.
By NacreData on 2014-10-18 12:27:47 UTC
What did the nested permission system be a part of the acls module? Do you have ideas on how to implement that? I actually need nested permissions in general for documents, and have begun to think about trying to understand how the has_permissions call in the acls managers module works.
devin
contact info: http://nacredata.com/devin
On Oct 18, 2014, at 02:13, Roberto Rosario notifications@github.com wrote:
Postponing this feature, testing showed that a nested permission update needs to be created.
Folder A, has folder B as child which has folder C as child itself. A -> B -> C when an user tries to access folder C we need to check if he was permissions from folders B and A too.
— Reply to this email directly or view it on GitHub.
By rosarior on 2014-10-29 16:48:04 UTC
In this case it would be a reverse traverse from the folder being accessed all the way to the root folder. The traverse would be via the Folder model and not the permission model as the permission system does not have any idea how the asset it is protecting is structured. I'm thinking about using Django MPTT (used already by the index) to setup the nested folders as it has methods for reverse traversal. My worry is that the time to check for access is lineal with the amount of nested folder levels.