[Erp5-dev] access to get_local_roles in Base_getOwnerId
Mikolaj Antoszkiewicz
mikolaj at erp5.pl
Fri Nov 23 17:22:50 CET 2007
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?
BTW. Is there a way to get the real 'owner' of the object in ZMI?
Mikolaj
More information about the Erp5-dev
mailing list