test(files): add permission tests for basic file operations, with some security fixes
This commit is contained in:
parent
980bceb090
commit
cff87bdddd
4 changed files with 462 additions and 71 deletions
|
@ -27,6 +27,10 @@ var (
|
|||
TokenCookie = "tk"
|
||||
LastID = "lid"
|
||||
|
||||
// DownloadChunkSize can not be greater than limiter's token count
|
||||
// downloadSpeedLimit can not be lower than DownloadChunkSize
|
||||
DownloadChunkSize = 100 * 1024
|
||||
|
||||
ErrAccessDenied = errors.New("access denied")
|
||||
ErrUnauthorized = errors.New("unauthorized")
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue