Make auth-info endpoint machine readable
This commit is contained in:
parent
e2f5b04ff1
commit
506791fa6a
7 changed files with 112 additions and 36 deletions
|
|
@ -50,4 +50,6 @@ pub trait PermissionDao {
|
|||
) -> Result<(), DaoError>;
|
||||
async fn delete_role_privilege(&self, role: &str, privilege: &str) -> Result<(), DaoError>;
|
||||
async fn delete_user_role(&self, user: &str, role: &str) -> Result<(), DaoError>;
|
||||
|
||||
async fn privileges_for_user(&self, user: &str) -> Result<Arc<[PrivilegeEntity]>, DaoError>;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue