diff options
author | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
---|---|---|
committer | Alex Vitkov <alexvitkov98@gmail.com> | 2021-02-13 00:51:39 +0200 |
commit | ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d (patch) | |
tree | f8707e1aeff617916fc8684b418e7e28d56b08a9 /php/node.php | |
parent | a218bdd5fc29f4dab9f68c4eb9173db0627046c1 (diff) | |
download | fileup-ca4e0cbb1471e837197cd2ed30b1ea3c274ab41d.tar.gz |
Upload.php now can upload in direcotires other than root
Diffstat (limited to 'php/node.php')
-rw-r--r-- | php/node.php | 3 |
1 files changed, 3 insertions, 0 deletions
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; } } |