Problem/Motivation
The permission "Edit all expense and income transactions" excludes the author field.
If you are not user 1 on the site you can not set the author when creating or editing transactions.
Steps to reproduce
Create a new role "Office"
Add all available permissions that this module offers to the "office" role
give a user the office role
login as user and add a transaction.
The author field will not be available to set.
When the user save the transaction the user is set as the author of the transaction.
When the user edit the transaction the author field is not visible to change
Proposed resolution
Add a new permission
edit author expense_tracker:
title: 'Edit the author of all expense and income transactions'
Comments
Comment #2
vlooi vlerke commentedIt turns out a permission setting was missing.
Add the following to expense_tracker.permissions.yml
A new permission will be available to select and this will give you access to set the author.
The code this permission executes is in place at src/EtTransactionAccessControlHandler.php
Comment #3
sujan shrestha commentedFixed in 2.0.x (commit 95ecfcb), released in 2.0.3. The author field checked a permission that doesn't exist (administer expense_tracker). It now checks "Edit all expense and income transactions" or "Administer transactions", so roles with either can see and change the author. A kernel test covers this.