Skip to content

Commit 62486a1

Browse files
committed
fixup! editoast: add role management endpoints
Signed-off-by: Leo Valais <[email protected]>
1 parent 62288a4 commit 62486a1

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

editoast/editoast_authz/src/authorizer.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ mod tests {
369369
}
370370

371371
async fn get_user_id(&self, user_info: &UserInfo) -> Result<Option<i64>, Self::Error> {
372-
self.users.lock().unwrap().get(&user_info.identity).copied()
372+
Ok(self.users.lock().unwrap().get(&user_info.identity).copied())
373373
}
374374

375375
async fn get_user_info(&self, user_id: i64) -> Result<Option<UserInfo>, Self::Error> {

editoast/src/views/authz.rs

-2
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ enum AuthzError {
4040
#[error("Internal error")]
4141
#[editoast_error(status = 500, no_context)]
4242
Error(#[from] AuthDriverError),
43-
#[error(transparent)]
44-
DbError(#[from] editoast_models::DatabaseError), // forwards impl EditoastError
4543
#[error("Authorization error")]
4644
AuthError(#[from] AuthorizationError),
4745
}

0 commit comments

Comments
 (0)