mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-07-18 13:06:16 +00:00
fix: Adjust error code
This commit is contained in:
@@ -263,7 +263,7 @@ pub(crate) async fn deactivate_route(
|
||||
let sender_user = identity.expect_sender_user()?;
|
||||
|
||||
if !services.config.allow_deactivation {
|
||||
return Err!(Request(Unauthorized(
|
||||
return Err!(Request(Forbidden(
|
||||
"You may not deactivate your own account. Contact your server's administrator for \
|
||||
assistance."
|
||||
)));
|
||||
|
||||
Reference in New Issue
Block a user