-
-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
lock exported timesheets #798
Conversation
Pretty good argument, I simply did not think about it at all :-D |
I think reusing
would be the best. |
added "prevent deletion of exported timesheets" |
# Conflicts: # public/build/manifest.json
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. If you use Kimai on a daily basis, please consider donating to support further development of Kimai. |
Description
Exported records are locked to prevent further updates by regular users.
This limitation can be circumvented by users with the new permission
edit_exported_timesheet
, which by default is given toROLE_ADMIN
andROLE_SUPER_ADMIN
.These users will see a warning instead:
A new API method was added to switch the export state of timesheet records.
Fixes #686
Testing
Can be tested at http://demo-branch.kimai.org/
Please try it with both an admin and a regular user. The regular user cannot switch the "exported" state, so you have to either use the export screen or switch it manually in the timesheet administration with the admin user.
Regular user should not be able to edit the exported timesheets.
Admin user should see a warning.
Types of changes
Checklist
bin/console kimai:codestyle --fix
to verify the correct code style