Suggestions based on your idea:  Make it a separate app for encapsulation 
of functionality, create a new GroupManager model linked to the User model 
with a many to many field linked to the Groups model so that one user can 
become a manager of several groups, use the post_save signal of the 
Document models instead of a cron job to assign access when new Documents 
are created and the post_save signal of the new GroupManager model to 
assign the access when an user is made manager of a group.  Finally set the 
Document access for the managers using ACLs via 
the AccessEntry.objects.grant method to give the manager users access 
(Read, write, edit, download) to the specific documents of the group over 
which they will have control.

On Wednesday, October 3, 2012 1:00:16 PM UTC-4, Dairon Medina Caro wrote:
>
> One way i think can be adding a flag group_manager to users and with cron 
> job give acces to this person to all documents of other people in his 
> groups, i know its a ugly solution but i wanna know other ideas to develop 
> it.
>
> 2012/10/2 Roberto Rosario <[email protected] <javascript:>>
>
>> Interesting, I wonder how they implemented it.
>>
>> On Tuesday, October 2, 2012 10:16:48 AM UTC-4, Nate Aune wrote:
>>>
>>> This type of user/group permissioning is possible with Plone, a content 
>>> management system that can also be used as a lightweight DMS.
>>> On Sep 27, 2012 7:02 PM, "Dairon Medina Caro" <[email protected]> 
>>> wrote:
>>>
>>>> Hi i wanna know if the following structure can be done on Mayan and how:
>>>> I have 4 levels of users:
>>>> Gerency
>>>> Department Manager
>>>> Sub Department Manager
>>>> Employee
>>>>
>>>> I want the Gerency group can see all document of sub level groups, the 
>>>> Dewpartment manager all its department with sub departments documents and 
>>>> Sub Department Manager all its Employees documents and Employee can only 
>>>> see its own docs. Is there any way to make this work with Mayan??
>>>>
>>>> All the best
>>>>
>>>> -- 
>>>>  
>>>>  
>>>>  
>>>>
>>>  -- 
>>  
>>  
>>  
>>
>
>
>
> -- 
> *Dairon Medina Caro
> Software Developer*
> *email:* [email protected] <javascript:>
> *weblog:* http://codeadict.org
> *mobile:* *(+593)*-987612278
> http://linkedin.com/in/codeadict
> @codeadict
>
>

-- 



Reply via email to