Skip to content

Commit 22e01d2

Browse files
authored
updated status code for role fetch api to avoid FE redirect (#3395)
1 parent 0918ad3 commit 22e01d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/user/RbacRoleRestHandler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ func (handler *RbacRoleRestHandlerImpl) GetAllDefaultRoles(w http.ResponseWriter
7070
}
7171
}
7272
if !isAuthorized {
73-
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusUnauthorized)
73+
common.WriteJsonResp(w, errors.New("unauthorized"), nil, http.StatusForbidden)
7474
return
7575
}
7676
}

0 commit comments

Comments
 (0)