diff --git a/apps/files_sharing/appinfo/.database.xml.kate-swp b/apps/files_sharing/appinfo/.database.xml.kate-swp new file mode 100644 index 0000000000..f2127b00c7 Binary files /dev/null and b/apps/files_sharing/appinfo/.database.xml.kate-swp differ diff --git a/apps/files_sharing/appinfo/database.xml b/apps/files_sharing/appinfo/database.xml index bb80484bd6..3378b6b09e 100644 --- a/apps/files_sharing/appinfo/database.xml +++ b/apps/files_sharing/appinfo/database.xml @@ -8,10 +8,16 @@ *dbprefix*sharing - item + uid_owner text true - 128 + 64 + + + uid_shared_with + text + true + 64 source @@ -26,22 +32,10 @@ 128 - uid_owner - text - true - 64 - - - uid_shared_with - text - true - 64 - - permissions - text + integer true - 3 + 1 diff --git a/lib/base.php b/lib/base.php index d369b392a4..9218861ed5 100644 --- a/lib/base.php +++ b/lib/base.php @@ -166,8 +166,8 @@ class OC_UTIL { OC_FILESYSTEM::mount($rootStorage,'/'); // TODO add this storage provider in a proper way - $sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>'/MTGap/files/Share/')); - OC_FILESYSTEM::mount($sharedStorage,'MTGap/files/Share/'); + $sharedStorage = OC_FILESYSTEM::createStorage('shared',array('datadir'=>'/'.$_SESSION['user_id'].'/files/Share/')); + OC_FILESYSTEM::mount($sharedStorage,'/'.$_SESSION['user_id'].'/files/Share/'); $CONFIG_DATADIRECTORY = "$CONFIG_DATADIRECTORY_ROOT/$user/$root"; if( !is_dir( $CONFIG_DATADIRECTORY )){