mirror of https://github.com/perkeep/perkeep.git
auth: fix OpUpload bitmask check
Change-Id: I7cc3487637c657762a28cb5aeb4abb253bbd1149
This commit is contained in:
parent
17f44ca79c
commit
e8f99a9832
|
@ -272,7 +272,7 @@ func IsLocalhost(req *http.Request) bool {
|
|||
// Allowed returns whether the given request
|
||||
// has access to perform all the operations in op.
|
||||
func Allowed(req *http.Request, op Operation) bool {
|
||||
if op|OpUpload != 0 {
|
||||
if op&OpUpload != 0 {
|
||||
// upload (at least from camput) requires stat and get too
|
||||
op = op | OpVivify
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue