Hi all
I have this installation
php version 5.2.0
SugarCRM opensource 4.5.1e
I need to retrieve some information throught Soap interface.So I created a specific user for this task I guess that an user with flag "Portal_only" only is enough for this.
I created the user, but no way to authenticate it using login soap function. Looking around I found that in the table "Users" the field "Portal_only" was set to 1 (on), which is was expected.
But if a look into the source code, in the file called SoapSugarUsers.php, I found this piece of code:
$user = $user->retrieve_by_string_fields(array('user_name'=>$use r_auth['user_name'],'user_hash'=>$user_auth['password'], 'deleted'=>0, 'status'=>'Active', 'portal_only'=>0) );
So this was the reason not to login in anyway. If a change the user status not to be portal_only user, and of course it works or if a change the above code to " 'portal_only'=>0.
So the question is, is it the right way to create an use just to be part of Soap calls, to
created portal_only as suggest sugarcrm when you create the user??
You have to created as a "Normal User", so why exists "Portal User"??
Thank you very much


LinkBack URL
About LinkBacks



Reply With Quote


Bookmarks