mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 07:53:39 +01:00
removed unnecessary checkAuth function, because the regular eGW session cookie got not recogniced and all checks are done by the header include anyway
This commit is contained in:
parent
9327beb6e4
commit
42688f5cd2
@ -456,25 +456,4 @@ class oldvfs_webdav_server extends HTTP_WebDAV_Server
|
||||
|
||||
return ""; // this is as the filesystem example handler does it, no true or false ...
|
||||
}
|
||||
|
||||
/**
|
||||
* auth check in the session creation in dav.php, to avoid being redirected to login.php
|
||||
*
|
||||
* @param string $type
|
||||
* @param string $login account_lid or account_lid@domain
|
||||
* @param string $password this is checked in the session creation
|
||||
* @return boolean true if authorized or false otherwise
|
||||
*/
|
||||
function checkAuth($type,$login,$password)
|
||||
{
|
||||
list($account_lid,$domain) = explode('@',$login);
|
||||
|
||||
$auth = ($login === $GLOBALS['egw_info']['user']['account_lid'] ||
|
||||
($account_lid === $GLOBALS['egw_info']['user']['account_lid'] && $domain === $GLOBALS['egw']->session->account_domain)) &&
|
||||
$GLOBALS['egw_info']['user']['apps']['filemanager'];
|
||||
|
||||
if ($this->debug) error_log("vfs_webdav_server::checkAuth('$type','$login','\$password'): account_lid='$account_lid', domain='$domain' ==> ".(int)$auth);
|
||||
|
||||
return $auth;
|
||||
}
|
||||
}
|
@ -380,25 +380,4 @@ class vfs_webdav_server extends HTTP_WebDAV_Server_Filesystem
|
||||
unset($allow['UNLOCK']);
|
||||
return $allow;
|
||||
}
|
||||
|
||||
/**
|
||||
* auth check in the session creation in dav.php, to avoid being redirected to login.php
|
||||
*
|
||||
* @param string $type
|
||||
* @param string $login account_lid or account_lid@domain
|
||||
* @param string $password this is checked in the session creation
|
||||
* @return boolean true if authorized or false otherwise
|
||||
*/
|
||||
function checkAuth($type,$login,$password)
|
||||
{
|
||||
list($account_lid,$domain) = explode('@',$login);
|
||||
|
||||
$auth = ($login === $GLOBALS['egw_info']['user']['account_lid'] ||
|
||||
($account_lid === $GLOBALS['egw_info']['user']['account_lid'] && $domain === $GLOBALS['egw']->session->account_domain)) &&
|
||||
$GLOBALS['egw_info']['user']['apps']['filemanager'];
|
||||
|
||||
if ($this->debug) error_log("vfs_webdav_server::checkAuth('$type','$login','\$password'): account_lid='$account_lid', domain='$domain' ==> ".(int)$auth);
|
||||
|
||||
return $auth;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user