From acd531c38a89f69fdb237f0b2a05e2f530eb1138 Mon Sep 17 00:00:00 2001 From: Sergey Ukustov Date: Tue, 16 Jul 2024 13:59:50 +0300 Subject: [PATCH] no model check --- api/src/auth.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/api/src/auth.rs b/api/src/auth.rs index a9b601557..5386f49fb 100644 --- a/api/src/auth.rs +++ b/api/src/auth.rs @@ -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); "#,