mirror of
https://github.com/meta-llama/llama-stack.git
synced 2025-12-23 15:13:57 +00:00
fix: auth sql store: user is owner policy, fix test
# What does this PR do? ## Test Plan # What does this PR do? ## Test Plan
This commit is contained in:
parent
81109a0f72
commit
ed8f9c03b5
5 changed files with 247 additions and 175 deletions
|
|
@ -81,7 +81,7 @@ def is_action_allowed(
|
|||
if not len(policy):
|
||||
policy = default_policy()
|
||||
|
||||
qualified_resource_id = resource.type + "::" + resource.identifier
|
||||
qualified_resource_id = f"{resource.type}::{resource.identifier}"
|
||||
for rule in policy:
|
||||
if rule.forbid and matches_scope(rule.forbid, action, qualified_resource_id, user.principal):
|
||||
if rule.when:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue