[Top][All Lists]

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

Re: [Dolibarr-dev] Soap webservice and $user global

From: Laurent Destailleur (aka Eldy)
Subject: Re: [Dolibarr-dev] Soap webservice and $user global
Date: Sat, 20 May 2017 17:19:14 +0200

Just try to push your path as a github PR. You will see comment on feedback on it.

Just note this:

global $user is used to known the current logged user than run the code
$user as parameter (in most cases, it should be called $fuser to avoid conflict), should be the user the function is related to. (so a logged user can create on object related to a different user)

2017-05-19 9:48 GMT+02:00 address@hidden <address@hidden>:

Before to move to REST solution, I need to propose some patch about
webservice SOAP.

I've a doubt about $user global. In some case, method use $user global
and not $user provided as argument.

For example we have many error when actioncomm is enabled. These
methods work mainly with global. Other method don't ask $user

In my use case I've patch some webservice method to set global $user
and rename $fuser.

Can I patch to force global $user ?

My use case is dolispip usage with dolibarr4.x


Dolibarr-dev mailing list

* Dolibarr (Project leader): (make a donation for Dolibarr project via Paypal: address@hidden)
* AWStats (Author) : (make a donation for AWStats project via Paypal: address@hidden)
* AWBot (Author) :
* CVSChangeLogBuilder (Author) :

reply via email to

[Prev in Thread] Current Thread [Next in Thread]