mirror of
https://github.com/datahub-project/datahub.git
synced 2025-11-02 11:49:23 +00:00
fix(tags): fix ownership on tag create (#2253)
This commit is contained in:
parent
d8268dae5a
commit
8c8de74ec2
@ -151,7 +151,7 @@ public class DatasetType implements SearchableEntityType<Dataset>, BrowsableEnti
|
||||
@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
|
||||
|
||||
@ -115,7 +115,7 @@ public class TagType implements com.linkedin.datahub.graphql.types.SearchableEnt
|
||||
@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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user