auth: fix OpUpload bitmask check

Change-Id: I7cc3487637c657762a28cb5aeb4abb253bbd1149
This commit is contained in:
mpl 2014-04-15 01:40:52 +02:00
parent 17f44ca79c
commit e8f99a9832
1 changed files with 1 additions and 1 deletions

View File

@ -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
}