changed organization of static files
removed: item.auth item.auth_path added: item.file_path, item.file_fs, item.file_type now the path to a static file is a relative path added: thumbnails (not finished yet) fixed: db didn't correctly return the number of deleted items /DelItem() method/ git-svn-id: svn://ttmath.org/publicrep/winix/trunk@696 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -32,16 +32,20 @@ void Download::MakeGet()
|
||||
}
|
||||
|
||||
|
||||
if( !system->HasReadAccess(request->item) ||
|
||||
request->item.auth == Item::auth_none ||
|
||||
request->item.auth_path.empty() )
|
||||
if( !system->HasReadAccess(request->item) ||
|
||||
request->item.file_type == WINIX_ITEM_FILETYPE_NONE ||
|
||||
request->item.file_path.empty() )
|
||||
{
|
||||
request->status = WINIX_ERR_PERMISSION_DENIED;
|
||||
return;
|
||||
}
|
||||
|
||||
request->send_as_attachment = request->IsParam(L"attachment");
|
||||
request->x_sendfile = request->item.auth_path;
|
||||
|
||||
if( request->item.file_type == WINIX_ITEM_FILETYPE_IMAGE && config->create_thumb && request->IsParam(L"thumb") )
|
||||
system->MakeFilePath(request->item, request->x_sendfile, true);
|
||||
else
|
||||
system->MakeFilePath(request->item, request->x_sendfile);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user