mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-28 09:38:53 +01:00
fix OpenID scope "profile" gives error that it cant create /home//.tmp
This commit is contained in:
parent
5a20f5965e
commit
0c11d2fd59
@ -334,7 +334,7 @@ class Sharing extends \EGroupware\Api\Sharing
|
||||
// if not create new share
|
||||
if ($mode == 'link')
|
||||
{
|
||||
$user_tmp = '/home/'.$GLOBALS['egw_info']['user']['account_lid'].'/.tmp';
|
||||
$user_tmp = '/home/'.Api\Accounts::id2name(Api\Vfs::$user).'/.tmp';
|
||||
if (!Vfs::file_exists($user_tmp) && !Vfs::mkdir($user_tmp, null, STREAM_MKDIR_RECURSIVE))
|
||||
{
|
||||
throw new Api\Exception\AssertionFailed("Could NOT create temp. directory '$user_tmp'!");
|
||||
|
Loading…
Reference in New Issue
Block a user