Skip to content

Commit

Permalink
fix(tags): fix ownership on tag create (#2253)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe-lyons authored Mar 18, 2021
1 parent d8268da commit 8c8de74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public List<BrowsePath> browsePaths(@Nonnull String urn, @Nonnull final QueryCon
@Override
public Dataset update(@Nonnull DatasetUpdateInput input, @Nonnull QueryContext context) throws Exception {
// TODO: Verify that updater is owner.
final CorpuserUrn actor = new CorpuserUrn(context.getActor());
final CorpuserUrn actor = CorpuserUrn.createFromString(context.getActor());
final com.linkedin.dataset.Dataset partialDataset = DatasetUpdateInputMapper.map(input);

// Create Audit Stamp
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public AutoCompleteResults autoComplete(@Nonnull String query,
@Override
public Tag update(@Nonnull TagUpdate input, @Nonnull QueryContext context) throws Exception {
// TODO: Verify that updater is owner.
final CorpuserUrn actor = new CorpuserUrn(context.getActor());
final CorpuserUrn actor = CorpuserUrn.createFromString(context.getActor());
final com.linkedin.tag.Tag partialTag = TagUpdateMapper.map(input);

// Create Audit Stamp
Expand Down

0 comments on commit 8c8de74

Please sign in to comment.