Skip to content

Granular Permissions for Tasks#8821

Open
marcoAntonioNina wants to merge 11 commits into
developfrom
epic/FOUR-31103
Open

Granular Permissions for Tasks#8821
marcoAntonioNina wants to merge 11 commits into
developfrom
epic/FOUR-31103

Conversation

@marcoAntonioNina
Copy link
Copy Markdown
Contributor

@marcoAntonioNina marcoAntonioNina commented May 7, 2026

Issue & Reproduction Steps

The permissions that were added for the task tabs are:
'overview-tab-task', summary-tab-task', 'completed-tab-task', 'form-tab-task', 'files-tab-task'.
image
where you can enable or disable permissions for the tabs.
These permissions hide or show the Cases and Request tabs.
(Tabs enabled)
image
(Tabs hidden)
Cases
image
Request
image

Solution

How to Test

The administrator user can enable or disable user permissions to view the tabs section in Task and Request (Task section)
The user will only be able to view the tabs if they are granted permission.
Newly created users should have the tabs enabled by default.
Users who already exist after the migration should have permissions enabled by default.

Related Tickets & Packages

Code Review Checklist

  • I have pulled this code locally and tested it on my instance, along with any associated packages.
  • This code adheres to ProcessMaker Coding Guidelines.
  • This code includes a unit test or an E2E test that tests its functionality, or is covered by an existing test.
  • This solution fixes the bug reported in the original ticket.
  • This solution does not alter the expected output of a component in a way that would break existing Processes.
  • This solution does not implement any breaking changes that would invalidate documentation or cause existing Processes to fail.
  • This solution has been tested with enterprise packages that rely on its functionality and does not introduce bugs in those packages.
  • This code does not duplicate functionality that already exists in the framework or in ProcessMaker.
  • This ticket conforms to the PRD associated with this part of ProcessMaker.

ci:deploy

marcoAntonioNina and others added 10 commits May 6, 2026 15:19
Updated UserObserver to include new permissions: overview-tab-task, summary-tab-task, completed-tab-task, form-tab-task, and files-tab-task.
Create migration to add permissions for Task Tabs
Validate permissions in the tabs (Requests)
Validate permissions in the tabs (Cases)
New users should have these values ​​set to true by default.
…rs and corresponding tests

This commit introduces a new migration that assigns specific tab task permissions to non-administrator users and includes a rollback method to remove these permissions. Additionally, it adds a test suite to verify the correct assignment and removal of permissions during migration operations.
Legacy users should have these permissions set to true (migration users)
@Kookster310
Copy link
Copy Markdown
Contributor

QA server K8S was successfully deployed https://ci-4ce6ff00f6.engk8s.processmaker.net

@processmaker-sonarqube
Copy link
Copy Markdown

@Kookster310
Copy link
Copy Markdown
Contributor

QA server K8S was successfully deployed https://ci-4ce6ff00f6.engk8s.processmaker.net

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants