@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.
Files changed (2) hide show
  1. package/go/auth/utils.go +2 -0
  2. 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":
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivascva/dt-idl",
3
- "version": "1.1.133",
3
+ "version": "1.1.134",
4
4
  "description": "Dream Trade - Interface Definition Language",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/index.esm.js",