Skip to content

Commit

Permalink
refactor: [#615] renamed variable
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Aug 3, 2024
1 parent 2880f7c commit b483c8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/authorization.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ impl Service {
/// Will return an error if:
/// - The user is not authorized to perform the action.

pub async fn authorize(&self, action: ACTION, maybe_user_id: Option<UserId>) -> std::result::Result<(), ServiceError> {
let role = self.get_role(maybe_user_id).await;
pub async fn authorize(&self, action: ACTION, opt_user_id: Option<UserId>) -> std::result::Result<(), ServiceError> {
let role = self.get_role(opt_user_id).await;

let enforcer = self.casbin_enforcer.enforcer.read().await;

Expand Down

0 comments on commit b483c8e

Please sign in to comment.