Our goal is for people to interact with our OMS without ever having to view the typical edit form for the order entity. However, it’s still possible some sites will need the full edit form until they migrate their custom functionality to the appropriate modal forms.

Proposed solution

Add a checkbox to the order type settings form between the workflow select list and the checkbox for order numbering. It should be labeled:

Allow users with permission to access the order edit form via the edit tab and operations links.

Acceptance criteria

  • When this box is unchecked, even if a user has access, the edit local task tab and operations link should never be shown. If it’s not possible to hide this from superusers, that’s ok.
  • Similarly, we aren’t trying to restrict access to the edit route. If someone knows to type it into the URL or gets direct linked from some other interface, they would still be able to access the edit form, and that’s ok.
  • For new installations, this should remain unchecked by default for all order types.
  • For upgraded installations, until the order type settings are updated, the site should behave like it is checked, including it appearing to be checked on the settings form when first opened. In other words, the absence of a value should be treated like the presence of TRUE.

Issue fork commerce-3571762

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

rszrama created an issue. See original summary.

khiminrm made their first commit to this issue’s fork.

jsacksick’s picture

Status: Active » Needs review

  • jsacksick committed 85e29d3f on 3.x
    feat: #3571762 Add an order setting to disable access to the edit tab...
jsacksick’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.