Update auth.go
This commit is contained in:
parent
3afd7c2eda
commit
f9932f0362
@ -90,7 +90,7 @@ func AuthorizedTo(requiredPermissions models.Permission, overwriters ...func(*gi
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ctx.AbortWithStatus(403)
|
ctx.AbortWithStatusJSON(403, "matching permissions were not found")
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user