Skip to content

Commit

Permalink
fix-missing-link-only-option-in-old-apps (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
churnikov authored Apr 17, 2024
1 parent 24ff103 commit c6781f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/generate_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,10 +160,10 @@ def get_form_permission(aset, project, appinstance=[]):
try:
ai_vals = appinstance.parameters
logger.info(ai_vals["permissions"])
form_permissions["public"]["value"] = ai_vals["permissions"]["public"]
form_permissions["project"]["value"] = ai_vals["permissions"]["project"]
form_permissions["private"]["value"] = ai_vals["permissions"]["private"]
form_permissions["link"]["value"] = ai_vals["permissions"]["link"]
form_permissions["public"]["value"] = ai_vals["permissions"].get("public", False)
form_permissions["project"]["value"] = ai_vals["permissions"].get("project", False)
form_permissions["private"]["value"] = ai_vals["permissions"].get("private", False)
form_permissions["link"]["value"] = ai_vals["permissions"].get("link", False)
logger.info(form_permissions)
except Exception:
logger.error("Permissions not set for app instance, using default.", exc_info=True)
Expand Down

0 comments on commit c6781f2

Please sign in to comment.