AY-5539 - do not use profiles for traypublisher

This commit is contained in:
Petr Kalis 2024-05-28 16:50:32 +02:00
parent cd11db27aa
commit 2cf7f36f9b

View file

@ -1852,6 +1852,10 @@ class PublisherController(BasePublisherController):
If no profile provided for current context, it shows all creators If no profile provided for current context, it shows all creators
""" """
allowed_creator_identifiers = []
if self._create_context.host_name == "traypublisher":
# no real context known
return allowed_creator_identifiers
proj_settings = get_project_settings(self.project_name) proj_settings = get_project_settings(self.project_name)
filter_creator_profiles = ( filter_creator_profiles = (
proj_settings proj_settings
@ -1871,7 +1875,7 @@ class PublisherController(BasePublisherController):
filtering_criteria, filtering_criteria,
logger=self.log logger=self.log
) )
allowed_creator_identifiers = []
if profile: if profile:
allowed_creator_identifiers = profile["creator_identifiers"] allowed_creator_identifiers = profile["creator_identifiers"]
return allowed_creator_identifiers return allowed_creator_identifiers