admin/roles: update label
This commit is contained in:
parent
d778380d8b
commit
8dbeffddc9
6 changed files with 80 additions and 2 deletions
|
|
@ -60,4 +60,10 @@ impl Role {
|
|||
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub async fn set_label(&self, conn: impl SqliteExecutor<'_>, label: &str) -> Result<(), Error> {
|
||||
DatabaseRoles::set_label(conn, self.name.as_ref(), label).await?;
|
||||
|
||||
Ok(())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue