The delete translation job button is always displayed in Job Form, regardless of the user's permissions

Created on 7 June 2024, 17 days ago

Problem/Motivation

The delete job button is always displayed, even for users who do not have permissions to delete active jobs. It is also displayed for users who do not have permission to delete inactive jobs.

Steps to reproduce

Enter with a user who does not have the permission "Administer translation management" on an active translation job administration page (/admin/tmgmt/jobs/%jod_id) and check that the delete job button is displayed.
Enter with a user who does not have the "Administer translation management" and "Delete inactive translation jobs" permissions on an inactive translation job administration page and check that the delete job button is displayed too.

Proposed resolution

Add '#access' condition for this button in form.

πŸ› Bug report
Status

Active

Version

1.0

Component

User interface

Created by

πŸ‡ͺπŸ‡ΈSpain ajFernandez

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024