Skip to content

Commit

Permalink
MF-540 - Return ignored cache error (#544)
Browse files Browse the repository at this point in the history
Signed-off-by: Manuel Imperiale <manuel.imperiale@gmail.com>
  • Loading branch information
manuio authored Nov 12, 2024
1 parent ef59027 commit 0c6b8f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion things/groups.go
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,9 @@ func (ts *thingsService) canAccessGroup(ctx context.Context, token, groupID, act
}
role = r

ts.thingCache.SaveRole(ctx, gp.GroupID, gp.MemberID, r)
if err := ts.thingCache.SaveRole(ctx, gp.GroupID, gp.MemberID, r); err != nil {
return err
}
}

switch role {
Expand Down

0 comments on commit 0c6b8f3

Please sign in to comment.