From 6cc6dc3b1a0c7dc31cdfa11f61e2c77d359d39a5 Mon Sep 17 00:00:00 2001 From: Nate Armstrong Date: Mon, 18 Nov 2024 10:40:07 -0800 Subject: [PATCH] Add ReadAdmin and WriteAdmin grants --- format/eat/auth.go | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/format/eat/auth.go b/format/eat/auth.go index e38e67b..563b7f0 100644 --- a/format/eat/auth.go +++ b/format/eat/auth.go @@ -5,15 +5,19 @@ type Grant string // Grants defines the kinds of access authorizations. var Grants = struct { - Create Grant - Access Grant - Read Grant - Update Grant - ReadCrypt Grant + Create Grant + Access Grant + Read Grant + Update Grant + ReadCrypt Grant + ReadAdmin Grant + WriteAdmin Grant }{ - Create: "create", - Access: "access", - Read: "read", - Update: "update", - ReadCrypt: "read-crypt", // read from content crypt + Create: "create", + Access: "access", + Read: "read", + Update: "update", + ReadCrypt: "read-crypt", // read from content crypt + ReadAdmin: "read-admin", + WriteAdmin: "write-admin", }