Skip to content

Commit

Permalink
Fix transferring LO's in shared folder when moving ownership in manag…
Browse files Browse the repository at this point in the history
…ement.php

When transferring ownership in the management.php you can transfer shered folders as well.
LO's of other people need to be moved to the 'new' shared folder
  • Loading branch information
torinfo committed Apr 3, 2023
1 parent 65e5a19 commit d7bb0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion website_code/php/management/do_transfer_user_templates.php
Expand Up @@ -236,7 +236,7 @@ function createGetFolderId($folder_structure, $newuserid, $old_folder_id, $trans
db_query($q, $params);

// Move all templaterights referring to $old_folder_id to $folder_id
$q = "update {$prefix}templaterights set folder=? where folder=? and role != 'creator'";
$q = "update {$prefix}templaterights set folder=? where folder=?";
$params = array($folder_id, $old_folder_id);
db_query($q, $params);
}
Expand Down

0 comments on commit d7bb0d5

Please sign in to comment.