Skip to content

Commit

Permalink
Merge pull request AOT-Technologies#2335 from auslin-aot/FWF-3908-Fix…
Browse files Browse the repository at this point in the history
…-design-permission-issue

FWF-3908: Fix form design permission issue on new form creation
  • Loading branch information
arun-s-aot authored Nov 11, 2024
2 parents 5344e05 + 40b563f commit 97e04a5
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,11 @@ def create_default_process(cls, process_name, status=ProcessStatus.DRAFT, **kwar
return process

@staticmethod
def create_form(data, is_designer): # pylint:disable=too-many-locals
@user_context
def create_form(data, is_designer, **kwargs): # pylint:disable=too-many-locals
"""Service to handle form create."""
current_app.logger.info("Creating form..")
user: UserContext = kwargs["user"]
# Initialize formio service and get formio token to create the form
formio_service = FormioService()
form_io_token = formio_service.get_formio_access_token()
Expand Down Expand Up @@ -422,6 +424,8 @@ def create_form(data, is_designer): # pylint:disable=too-many-locals
"resourceId": parent_form_id,
"resourceDetails": {},
"roles": [],
"userName": user.user_name,

},
"form": {
"resourceId": parent_form_id,
Expand Down

0 comments on commit 97e04a5

Please sign in to comment.