mirror of
https://github.com/tailscale/tailscale.git
synced 2025-10-24 09:39:39 +00:00
drive: don't allow DELETE on read-only shares
Fixes tailscale/corp#19646 Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
committed by
Percy Wegmann
parent
7455e027e9
commit
2648d475d7
@@ -380,6 +380,7 @@ var writeMethods = map[string]bool{
|
||||
"MKCOL": true,
|
||||
"MOVE": true,
|
||||
"PROPPATCH": true,
|
||||
"DELETE": true,
|
||||
}
|
||||
|
||||
// canSudo checks wether we can sudo -u the configured executable as the
|
||||
|
||||
Reference in New Issue
Block a user