forked from enviPath/enviPy
Adjust data_pool resolution for app integrations
This commit is contained in:
@@ -378,6 +378,10 @@ class PackageManager(object):
|
|||||||
# EDIT START
|
# EDIT START
|
||||||
|
|
||||||
if package.classification_level == Package.Classification.SECRET:
|
if package.classification_level == Package.Classification.SECRET:
|
||||||
|
if user.principal_type == user.PrincipalType.APP:
|
||||||
|
if not user.app_details.secret_allowed or package.data_pool != user.app_details.data_pool:
|
||||||
|
return False
|
||||||
|
|
||||||
if package.data_pool not in groups:
|
if package.data_pool not in groups:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user