forked from jmug/stoatchat
feat: add group ownership transfer
This commit is contained in:
@@ -72,6 +72,7 @@ pub enum Error {
|
||||
},
|
||||
NotElevated,
|
||||
CannotGiveMissingPermissions,
|
||||
NotOwner,
|
||||
|
||||
// ? General errors.
|
||||
DatabaseError {
|
||||
@@ -167,6 +168,7 @@ impl<'r> Responder<'r, 'static> for Error {
|
||||
Error::MissingUserPermission { .. } => Status::Forbidden,
|
||||
Error::NotElevated => Status::Forbidden,
|
||||
Error::CannotGiveMissingPermissions => Status::Forbidden,
|
||||
Error::NotOwner => Status::Forbidden,
|
||||
|
||||
Error::DatabaseError { .. } => Status::InternalServerError,
|
||||
Error::InternalError => Status::InternalServerError,
|
||||
|
||||
Reference in New Issue
Block a user