Skip to content

Commit

Permalink
Merge pull request #47 from w6d-io/develop
Browse files Browse the repository at this point in the history
[ADD] test rego
  • Loading branch information
nhaquet-w6d authored Nov 27, 2023
2 parents 2799ea9 + de34a8d commit f2ff16b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
28 changes: 0 additions & 28 deletions acl.rego

This file was deleted.

4 changes: 2 additions & 2 deletions src/controller/update.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@ pub async fn update_controller(
let mut object_identity: Option<Arc<Identity>> = None;
let uri = "api/iam/".to_owned() + endpoint;
for data in payload.iter() {
/* if !validate_roles(&config, &identity, &data.ressource_id, request_id, &uri).await? {
if !validate_roles(&config, &identity, &data.ressource_id, request_id, &uri).await? {
Err(anyhow!("Invalid role!"))?;
} */
}
println!("role validated!");
if let Some(ref ident) = object_identity {
match data.id {
Expand Down

0 comments on commit f2ff16b

Please sign in to comment.