fix(auth): Tag Create Privileges were incorrectly using Dataset Create privileges (#3683)

This commit is contained in:
John Joyce 2021-12-07 17:48:29 -08:00 committed by GitHub
parent 6dffe9b247
commit 44544dfa37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ public class TagType implements com.linkedin.datahub.graphql.types.SearchableEnt
return AuthorizationUtils.isAuthorized(
context.getAuthorizer(),
context.getAuthentication().getActor().toUrnStr(),
PoliciesConfig.DATASET_PRIVILEGES.getResourceType(),
PoliciesConfig.TAG_PRIVILEGES.getResourceType(),
update.getUrn(),
orPrivilegeGroups);
}