authorization enforced on webpages
This commit is contained in:
@@ -46,8 +46,8 @@ func Write(w http.ResponseWriter, r *http.Request, res Response) {
|
||||
func WriteError(w http.ResponseWriter, err error) {
|
||||
var status int
|
||||
|
||||
if e, ok := getError(err); ok {
|
||||
if status, ok = e.getStatus(); !ok {
|
||||
if e, ok := GetError(err); ok {
|
||||
if status, ok = e.GetStatus(); !ok {
|
||||
status = http.StatusInternalServerError
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user