UniverseUniversity


Home Projects Jobs Clientele Contact

uu


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UU: Single-db-call philosophy



Alexey Parshin wrote:
> 2009/1/8 Ilya A. Volynets-Evenbakh <ilya@total-knowledge.com>
>
>   
>> Err.. Group_find_for_object already exists and is fine as-is, I think.
>> And yes, I'm fine with bugging you about creating an extra two-line
>> procedure every now and then, if you think it's the right thing to do :)
>>
>> I guess what I really need is umo_list_acl(umo_version_id, access_type)
>> returning recordset of PERSON.
>>     
>
>
> Ok. Do you want any person that has *exactly* or *at least* that access?
> Also, since ACL isn't in parameters or results, may be it's
> umo_list_persons?
> I'm not sure which name sucks more :)
>
> Goes to my TODO list.
>   
Well, given that our accesses are essentially set of flags, as opposed to
cumulative hierarchy, we don't really have "at least" concept.

What I'm looking for: give me list of admins, give me list of editors...
etc.

Then I'll need functions like umo_make_person_editor(version id, person id)
to manage permissions.


-- 
Ilya A. Volynets-Evenbakh
http://www.total-knowledge.com


Authoright © Total Knowledge: 2001-2008