mistake fixed - sorry
This commit is contained in:
parent
8b25e057b1
commit
3cc14cc556
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
|
|
||||||
Author : $Author: tomas $
|
Author : $Author: tomas $
|
||||||
Version : $Revision: 1.36 $
|
Version : $Revision: 1.37 $
|
||||||
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $
|
Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/storageServer/var/BasicStor.php,v $
|
||||||
|
|
||||||
------------------------------------------------------------------------------*/
|
------------------------------------------------------------------------------*/
|
||||||
|
@ -52,7 +52,7 @@ require_once "Transport.php";
|
||||||
* Core of LiveSupport file storage module
|
* Core of LiveSupport file storage module
|
||||||
*
|
*
|
||||||
* @author $Author: tomas $
|
* @author $Author: tomas $
|
||||||
* @version $Revision: 1.36 $
|
* @version $Revision: 1.37 $
|
||||||
* @see Alib
|
* @see Alib
|
||||||
*/
|
*/
|
||||||
class BasicStor extends Alib{
|
class BasicStor extends Alib{
|
||||||
|
@ -859,7 +859,7 @@ class BasicStor extends Alib{
|
||||||
{
|
{
|
||||||
$uid = parent::addSubj($login, $pass);
|
$uid = parent::addSubj($login, $pass);
|
||||||
if($this->dbc->isError($uid)) return $uid;
|
if($this->dbc->isError($uid)) return $uid;
|
||||||
if($this->isGroup($uid) !== FALSE){
|
if($this->isGroup($uid) === FALSE){
|
||||||
$fid = $this->bsCreateFolder($this->storId, $login);
|
$fid = $this->bsCreateFolder($this->storId, $login);
|
||||||
if($this->dbc->isError($fid)) return $fid;
|
if($this->dbc->isError($fid)) return $fid;
|
||||||
$res = $this->addPerm($uid, '_all', $fid, 'A');
|
$res = $this->addPerm($uid, '_all', $fid, 'A');
|
||||||
|
@ -934,9 +934,10 @@ class BasicStor extends Alib{
|
||||||
*/
|
*/
|
||||||
function _getHomeDirId($sessid)
|
function _getHomeDirId($sessid)
|
||||||
{
|
{
|
||||||
$parid = $this->getObjId(
|
$login = $this->getSessLogin($sessid);
|
||||||
$this->getSessLogin($sessid), $this->storId
|
if($this->dbc->isError($login)) return $login;
|
||||||
);
|
$parid = $this->getObjId($login, $this->storId);
|
||||||
|
if($this->dbc->isError($parid)) return $parid;
|
||||||
if(is_null($parid)){
|
if(is_null($parid)){
|
||||||
return $this->dbc->raiseError("BasicStor::_getHomeDirId: ".
|
return $this->dbc->raiseError("BasicStor::_getHomeDirId: ".
|
||||||
"homedir not found", GBERR_NOTF);
|
"homedir not found", GBERR_NOTF);
|
||||||
|
|
Loading…
Reference in New Issue