Skip to content
Snippets Groups Projects
Commit c1d6e2c7 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

The "user" directory is special: you don't need "access" to download from it.

When sending a user-to-user file transfer, SBBS (since v3.19) will check that
the file recipient will be able to download it (e.g. doesn't have restrictions
preventing it) and this was failing for most (non-sysop) recipient users since
they wouldn't normally meet the "access restrictions" of the user directory
(by design).
parent f7d2b24d
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
...@@ -3365,7 +3365,7 @@ BOOL can_user_download(scfg_t* cfg, uint dirnum, user_t* user, client_t* client, ...@@ -3365,7 +3365,7 @@ BOOL can_user_download(scfg_t* cfg, uint dirnum, user_t* user, client_t* client,
{ {
if(reason!=NULL) if(reason!=NULL)
*reason=CantDownloadFromDir; *reason=CantDownloadFromDir;
if(!can_user_access_dir(cfg, dirnum, user, client)) if(dirnum != cfg->user_dir && !can_user_access_dir(cfg, dirnum, user, client))
return FALSE; return FALSE;
if(!chk_ar(cfg,cfg->lib[cfg->dir[dirnum]->lib]->dl_ar,user,client)) if(!chk_ar(cfg,cfg->lib[cfg->dir[dirnum]->lib]->dl_ar,user,client))
return FALSE; return FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment