Skip to content

Commit

Permalink
fix: GET rbac permission for settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Subhra264 committed May 13, 2024
1 parent 901e9bc commit d9c7d63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common/utils/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ impl FromRequest for AuthExtractor {
path_columns[0].to_string()
}
} else if url_len == 2 || (url_len > 2 && path_columns[1].starts_with("settings")) {
if method.eq("GET") {
if method.eq("GET") && !path_columns[1].starts_with("settings") {
method = "LIST".to_string();
}
format!(
Expand Down

0 comments on commit d9c7d63

Please sign in to comment.