@rivascva/dt-idl 1.1.89 → 1.1.90
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 -2
- package/package.json +1 -1
package/go/auth/utils.go
CHANGED
|
@@ -8,8 +8,8 @@ import (
|
|
|
8
8
|
"github.com/RivasCVA/dt-idl/go/utils"
|
|
9
9
|
)
|
|
10
10
|
|
|
11
|
-
//
|
|
12
|
-
func
|
|
11
|
+
// CanActorAccessResourcesForUser checks if the actor is allowed to access resources for the user.
|
|
12
|
+
func CanActorAccessResourcesForUser(ctx context.Context, userId string) (bool, error) {
|
|
13
13
|
// get the actor id from the context
|
|
14
14
|
actorId, err := utils.GetActorIdFromContext(ctx)
|
|
15
15
|
if err != nil {
|