removed from Item: update() and save() methods which take the 'url_was_changed' argument
and added ItemModelData (based on morm::ModelData) class which has 'prepare_unique_url' field, an object of this class is passed to update(), insert() and save() methods fixed: Dirs::CheckRootDir(): update should update childs too (privileges) WIP: #4
This commit is contained in:
@@ -152,12 +152,13 @@ bool ok = true;
|
||||
if( CopyStaticFile(old_path, new_path) )
|
||||
{
|
||||
//cur->request->status = db->EditFileById(item, item.id);
|
||||
if( !item.update(false, true) )
|
||||
item.propagate_connector();
|
||||
|
||||
if( !item.item_content.update() )
|
||||
{
|
||||
cur->request->status = WINIX_ERR_PERMISSION_DENIED;
|
||||
}
|
||||
|
||||
|
||||
if( item.item_content.file_has_thumb )
|
||||
CopyStaticFile(old_path_thumb, new_path_thumb);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user