Skip to content

Commit

Permalink
no model check
Browse files Browse the repository at this point in the history
  • Loading branch information
ukstv committed Jul 16, 2024
1 parent b286990 commit acd531c
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions api/src/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,17 +129,11 @@ fn authenticate_biscuit(biscuit: &Biscuit, operation: &Operation, resource: &str
let mut auth = authorizer!(r#"
operation({operation});
resource({resource});
model({resource}, "kjzl6hvfrbw6cadyci5lvsff4jxl1idffrp2ld3i0k1znz0b3k67abkmtf7p7q3"); // FIXME
is_allowed($user, $res) <-
user($user),
resource($res),
right($user, $res);
is_allowed($user, $res) <-
user($user),
resource($res),
model($res, $model),
rightModel($user, $model);
allow if is_allowed($user, $resource);
"#,
Expand Down

0 comments on commit acd531c

Please sign in to comment.