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 0000000000000000000000000000000000000000..f2127b00c76b8bd8d4d04cf340cdc6aa023a544f 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 bb80484bd6372f84383e2c97b8ec8f9f9a110193..3378b6b09e53c0756ae1da961cd4db00dabff086 100644 --- a/apps/files_sharing/appinfo/database.xml +++ b/apps/files_sharing/appinfo/database.xml @@ -8,40 +8,34 @@ <name>*dbprefix*sharing</name> <declaration> <field> - <name>item</name> + <name>uid_owner</name> <type>text</type> <notnull>true</notnull> - <length>128</length> + <length>64</length> </field> <field> - <name>source</name> + <name>uid_shared_with</name> <type>text</type> <notnull>true</notnull> - <length>128</length> + <length>64</length> </field> <field> - <name>target</name> + <name>source</name> <type>text</type> <notnull>true</notnull> <length>128</length> </field> <field> - <name>uid_owner</name> + <name>target</name> <type>text</type> <notnull>true</notnull> - <length>64</length> + <length>128</length> </field> <field> - <name>uid_shared_with</name> - <type>text</type> - <notnull>true</notnull> - <length>64</length> - </field> - <field> <name>permissions</name> - <type>text</type> + <type>integer</type> <notnull>true</notnull> - <length>3</length> + <length>1</length> </field> </declaration> </table> diff --git a/lib/base.php b/lib/base.php index d369b392a4fed3e3e75c1439f4620d4f7f76ab6f..9218861ed5b340f3aaa2316a0bb7252c33f4fab9 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 )){