Skip to content

Commit

Permalink
OFS-228: allow to load db or default config perms
Browse files Browse the repository at this point in the history
  • Loading branch information
sniedzielski committed Mar 2, 2021
1 parent 710fd56 commit c7b4761
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def resolve_modules_permissions(self, info, **kwargs):
for app in all_apps:
apps = __import__(f"{app}.apps")
if hasattr(apps.apps, 'DEFAULT_CFG'):
config_dict = apps.apps.DEFAULT_CFG
config_dict = ModuleConfiguration.get_or_default(f"{app}", apps.apps.DEFAULT_CFG)
permission = []
for key, value in config_dict.items():
if "gql_query" in key or "gql_mutation" in key:
Expand Down

0 comments on commit c7b4761

Please sign in to comment.