mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-04 23:02:32 -05:00
more user admin actions
This commit is contained in:
@@ -2038,11 +2038,11 @@ impl LockedDatabase {
|
||||
self.auth.get_user_by_id_mut(id)
|
||||
}
|
||||
|
||||
pub fn apply_user_change(&mut self, change: UserChange) -> Result<&User, Error> {
|
||||
pub fn apply_user_change(&mut self, change: UserChange) -> Result<&User, base::Error> {
|
||||
self.auth.apply(&self.conn, change)
|
||||
}
|
||||
|
||||
pub fn delete_user(&mut self, id: i32) -> Result<(), Error> {
|
||||
pub fn delete_user(&mut self, id: i32) -> Result<(), base::Error> {
|
||||
self.auth.delete_user(&mut self.conn, id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user