From ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d Mon Sep 17 00:00:00 2001 From: Alex Vitkov Date: Sat, 13 Feb 2021 00:51:39 +0200 Subject: Upload.php now can upload in direcotires other than root --- php/node.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'php/node.php') diff --git a/php/node.php b/php/node.php index bb404e0..d7c2a6c 100644 --- a/php/node.php +++ b/php/node.php @@ -46,6 +46,9 @@ require_once "user.php"; { $dir_id=$database->create_dangling_directory(); $database->link_nodes($parent_dir_id,$dir_id,$directory_name,$note); + + $database->give_view_access($dir_id, $user->user_id); + $database->give_edit_access($dir_id, $user->user_id); return $dir_id; } } -- cgit v1.2.3