@rivascva/dt-idl 1.1.133 → 1.1.134
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/go/auth/utils.go +2 -0
- package/package.json +1 -1
package/go/auth/utils.go
CHANGED
|
@@ -24,6 +24,8 @@ func CanActorAccessResourcesForUser(ctx context.Context, userId string) (bool, e
|
|
|
24
24
|
|
|
25
25
|
// check if the actor is allowed to access the user id
|
|
26
26
|
switch tokenType {
|
|
27
|
+
case "access:admin":
|
|
28
|
+
return true, nil
|
|
27
29
|
case "access:user":
|
|
28
30
|
return actorId == userId, nil
|
|
29
31
|
case "access:service":
|