[Erp5-dev] access to get_local_roles in Base_getOwnerId

bartek bartek at erp5.pl
Fri Nov 23 17:27:06 CET 2007


Mikolaj Antoszkiewicz wrote:
> 
> Jérome Perrin wrote:
>> Mikolaj Antoszkiewicz a écrit :
>>> Hello,
>>>
>>> Since access to get_local_roles by non-Manager user is unauthorised, 
>>> could the script Base_getOwnerId have proxy Manager role by default.
>>> That way normal user can verify the ownership of the object, eg. in script.
>>> I think that would come in handy in many circumstances.
>> Hello,
>>
>> You can use getViewPermissionOwner, which is very similar
>>
> 
> What if I want to know who is the Owner even if I don't have View 
> Permission to the object?

...and, what if the guy who is the Owner doesn't have View for one 
reason or another? I may still want to know about him, while 
getViewPermissionOwner would return None...

Bartek

> BTW. Is there a way to get the real 'owner' of the object in ZMI?
> 
> Mikolaj
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev
> 


-- 
"feelings affect productivity. (...) unhappy people write worse 
software, and less of it."
Karl Fogel, "Producing Open Source Software"



More information about the Erp5-dev mailing list