Skip to content

Commit

Permalink
fix: subject relation validation bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
tolgaOzen committed Mar 14, 2023
1 parent b71ca2a commit 742a5ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/services/relationshipService.go
Expand Up @@ -68,7 +68,7 @@ func (service *RelationshipService) WriteRelationships(ctx context.Context, tena

for _, tup := range tuples {
subject := tup.GetSubject()
if !tuple.IsSubjectUser(subject) {
if !tuple.IsSubjectUser(subject) && subject.GetRelation() == "" {
subject.Relation = tuple.ELLIPSIS
}

Expand Down

0 comments on commit 742a5ab

Please sign in to comment.