Skip to content
Snippets Groups Projects
Commit 4d3cb97f authored by Moritz Strohm's avatar Moritz Strohm
Browse files

set user_id for files and folders

parent c9d7a1d4
No related branches found
No related tags found
No related merge requests found
......@@ -474,6 +474,7 @@ class OwncloudFolder extends VirtualFolderType {
'id' => ($this->id ? $this->id . "/" : "") . rawurlencode($file_attributes['name']),
'name' => $file_attributes['name'],
'parent_id' => $this->id,
'user_id' => $GLOBALS['user']->id,
'range_type' => $this->plugin_id,
'range_id' => 'OwnCloudPlugin'
), $this->plugin_id);
......@@ -485,6 +486,7 @@ class OwncloudFolder extends VirtualFolderType {
'size' => $file_attributes['size'],
'mime_type' => $content_type,
'description' => "",
'user_id' => $GLOBALS['user']->id,
'chdate' => $file_attributes['chdate'],
'download_url' => URLHelper::getURL("plugins.php/owncloudplugin/download/" . ($this->id ? $this->id . "/" : "") . rawurlencode($file_attributes['name']))
);
......
pluginname=OwnCloudPlugin
pluginclassname=OwnCloudPlugin
version=1.2.1
version=1.2.2
origin=data-quest
studipMinVersion=4.0
studipMaxVersion=4.4.99
\ No newline at end of file
studipMaxVersion=4.4.99
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment