Skip to content

Commit

Permalink
route permission
Browse files Browse the repository at this point in the history
  • Loading branch information
racnan committed Jan 18, 2024
1 parent 1b2cb7a commit 2b2a241
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/router/src/routes/user_role.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ pub async fn get_role_from_token(state: web::Data<AppState>, req: HttpRequest) -
&req,
(),
|state, user: UserFromToken, _| user_role_core::get_role_from_token(state, user),
&auth::JWTAuth(Permission::UsersRead),
&auth::DashboardNoPermissionAuth,
api_locking::LockAction::NotApplicable,
))
.await
Expand Down
2 changes: 1 addition & 1 deletion crates/router/src/services/authorization/info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ impl PermissionModule {
Self::Files => "Permissions for uploading, deleting and viewing files for disputes",
Self::ThreeDsDecisionManager => "View and configure 3DS decision rules configured for a merchant",
Self::SurchargeDecisionManager =>"View and configure surcharge decision rules configured for a merchant",
Self::AccountCreate => "Create new account within your organisation"
Self::AccountCreate => "Create new account within your organization"
}
}
}
Expand Down

0 comments on commit 2b2a241

Please sign in to comment.