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