Skip to content

Commit

Permalink
chore: renamed function and reordered parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
aaguiarz committed Oct 22, 2024
1 parent 0fc4d08 commit 574de51
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions stores/temporal-access/store.fga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ model: |
type document
relations
define viewer: [user, user with non_expired_grant]
define viewer: [user, user with temporal_access]
condition non_expired_grant(current_time: timestamp, grant_time: timestamp, grant_duration: duration) {
condition temporal_access(grant_time: timestamp, grant_duration: duration, current_time: timestamp) {
current_time < grant_time + grant_duration
}
Expand All @@ -21,7 +21,7 @@ tuples:
relation: viewer
object: document:1
condition:
name: non_expired_grant
name: temporal_access
context:
grant_time : "2023-01-01T00:00:00Z"
grant_duration : 1h
Expand All @@ -30,7 +30,7 @@ tuples:
relation: viewer
object: document:2
condition:
name: non_expired_grant
name: temporal_access
context:
grant_time : "2023-01-01T00:00:00Z"
grant_duration : 5s
Expand Down

0 comments on commit 574de51

Please sign in to comment.