Skip to content

Commit

Permalink
Merge pull request #354 from LouPritch/fix_revoke_session
Browse files Browse the repository at this point in the history
fix: User revoke own session
  • Loading branch information
tawoyinfa authored Feb 3, 2025
2 parents fcc0133 + 96f85d0 commit bd75bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions amplify/backend/api/team/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ type requests
@auth(
rules: [
{ allow: groups, groups: ["Auditors"], operations: [read] }
{ allow: owner, operations: [read]}
{ allow: owner, operations: [read, update]}
{ allow: owner, ownerField: "approver_ids", operations: [update,read] }
{ allow: private, provider: iam, operations: [read, update] }
]
Expand Down Expand Up @@ -369,4 +369,4 @@ type Query {
validateRequest: requests
@function(name: "teamvalidateRequest-${env}")
@auth(rules: [{ allow: private }])
}
}

0 comments on commit bd75bb5

Please sign in to comment.