* LDAP/AD/UCS/Filemanager: new created groups home-directory was not displayed in filemanager

This commit is contained in:
Ralf Becker 2015-03-27 10:48:44 +00:00
parent 30b7537072
commit b2648cf5e4
2 changed files with 5 additions and 2 deletions

View File

@ -563,7 +563,10 @@ class accounts
$this->set_memberships($memberships, $id); // invalidates cache for account_id and primary group $this->set_memberships($memberships, $id); // invalidates cache for account_id and primary group
} }
} }
self::cache_invalidate($data['account_id']); // as some backends set (group-)members in save, we need to invalidate their members too!
$invalidate = isset($data['account_members']) ? $data['account_members'] : array();
$invalidate[] = $data['account_id'];
self::cache_invalidate($invalidate);
return $id; return $id;
} }

View File

@ -120,7 +120,7 @@ class vfs_home_hooks
if (egw_vfs::mkdir($dir='/home/'.$data['account_lid'],0070,0)) if (egw_vfs::mkdir($dir='/home/'.$data['account_lid'],0070,0))
{ {
egw_vfs::chown($dir,0); egw_vfs::chown($dir,0);
egw_vfs::chgrp($dir,$data['account_id']); egw_vfs::chgrp($dir,abs($data['account_id'])); // gid in Vfs is positiv!
egw_vfs::chmod($dir,0070); // only group has access egw_vfs::chmod($dir,0070); // only group has access
} }
egw_vfs::$is_root = false; egw_vfs::$is_root = false;