mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 11:23:11 -06:00
Merge 'origin/fix-alias-deletion-654' into fix-alias-deletion-654
This commit is contained in:
commit
ea101a5674
|
|
@ -182,7 +182,7 @@ func RemoveLocalAlias(
|
||||||
if creatorQueryRes.UserID == "" {
|
if creatorQueryRes.UserID == "" {
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusNotFound,
|
Code: http.StatusNotFound,
|
||||||
JSON: jsonerror.NotFound("alias does not exist"),
|
JSON: jsonerror.NotFound("Alias does not exist"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -190,7 +190,7 @@ func RemoveLocalAlias(
|
||||||
// TODO: Still allow deletion if user is admin
|
// TODO: Still allow deletion if user is admin
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusForbidden,
|
Code: http.StatusForbidden,
|
||||||
JSON: jsonerror.Forbidden("you do not have permission to delete this alias"),
|
JSON: jsonerror.Forbidden("You do not have permission to delete this alias"),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue