You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Regular users have the ability to export their own timesheets with default settings (role create_export is active) and he does not see the "mark as exported toggle".
When the user does an export, the timesheets will be marked as exported.
There are two problems with this:
The regular user cannot edit his own timesheets anymore after he has exported them (because default settings will only allow to edit timesheets, which have not been exported yet)
The timesheets can easily be overlooked when invoicing the timesheets, because by default only non-exported timesheets will be used in an invoice
I believe this is a bug because IMHO it does not make sense to hide the "mark as exported toggle" (which is great) and then mark the timesheets as exported. I think, that timesheets should be left unchanged when a regular user exports them.
Here follows a paste of the other ticket.
(@kevinpapst: I'm sorry for opening a duplicate - I didn't see it when I had a look)
I just see the difference between Kimai 1 and 2 where I think, in Kimai 1 the "mark as exported" checkbox is by default disabled and in Kimai 2 it is by default enabled. Anyhow, the standard user without edit_export_* permissions doesn't see this option, therefore it was never a problem in the past - there was no way for a standard user to change the export flag.
I'd wish that a standard user can create an export from the export menu but without changing the export flag.
This was / would be useful, if a standard user wants to give an overview to a customer about the progress of a project.
Yes, you could do that through the export of timesheets if export_*_timesheet permissions are given. It even doesn't change the export flag.
But here the possibilities to export are limited and you can't select from various (even custom) PDF's for example.
One option could be to not include the permission to change the exported flag into create_export and add it as a separate permission.
Or to change the default in the export menu back to not mark as exported.
If this default is defined somewhere in the database, I would also be happy to know where to change it.
Describe the issue
Regular users have the ability to export their own timesheets with default settings (role create_export is active) and he does not see the "mark as exported toggle".
When the user does an export, the timesheets will be marked as exported.
There are two problems with this:
I believe this is a bug because IMHO it does not make sense to hide the "mark as exported toggle" (which is great) and then mark the timesheets as exported. I think, that timesheets should be left unchanged when a regular user exports them.
I already tried
Kimai version
2.0.35
How do you run Kimai?
Docker
Which PHP version are you using?
8.1
Logfile
No response
Screenshots
I log in as a regular user and export my own timesheet:
![grafik](https://private-user-images.githubusercontent.com/3328244/273345740-43ec008c-896d-44be-9efc-856b6023c94f.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyNTM4NzksIm5iZiI6MTcxNjI1MzU3OSwicGF0aCI6Ii8zMzI4MjQ0LzI3MzM0NTc0MC00M2VjMDA4Yy04OTZkLTQ0YmUtOWVmYy04NTZiNjAyM2M5NGYucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjFUMDEwNjE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWQyZDI2OTU2ZTA1MDgzNzIyZTFjZTE0N2UzZDJkMjk0MjJlMWMxNWUzNDk0N2JmN2MzMWZmMzFkMDUzZGJkNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.245p2HJHCOGRB63WILxcFdjhRxRqBT3_116xU5uG1wQ)
Now I cannot edit my timesheet anymore:
![grafik](https://private-user-images.githubusercontent.com/3328244/273345859-f37927e2-1fc2-42ad-a65e-9521ccabcd7d.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyNTM4NzksIm5iZiI6MTcxNjI1MzU3OSwicGF0aCI6Ii8zMzI4MjQ0LzI3MzM0NTg1OS1mMzc5MjdlMi0xZmMyLTQyYWQtYTY1ZS05NTIxY2NhYmNkN2QucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjFUMDEwNjE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9OTRjM2MxMDE5MmQ2MWNmNmQ1Y2U1ZTY3YTY3OWZlYTZlYjA2OWEyMzMwNGFiZTE4NDBjZmE2YjNmMDlkODJiNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.yPtpmmOxixzGrPZrQXIexHWg8qPPrKytISvgdhXQflA)
Now I log in with an admin user, to check the timesheet. It shows that it was marked as "exported":
![grafik](https://private-user-images.githubusercontent.com/3328244/273346916-eda89cb9-0a92-4c04-80eb-8bfc599e49c4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTYyNTM4NzksIm5iZiI6MTcxNjI1MzU3OSwicGF0aCI6Ii8zMzI4MjQ0LzI3MzM0NjkxNi1lZGE4OWNiOS0wYTkyLTRjMDQtODBlYi04YmZjNTk5ZTQ5YzQucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDUyMSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA1MjFUMDEwNjE5WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTg1YTM4MTU3YTA2MDdhYTRkYzhjMmQzYWI0MDk2NDZhMzk4NzIxNzI4Mzk0ODY0YjdmYWIyZjBlMjMzMjUzNCZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.sZ3MI3gXAgcyCDlwepA4a6DjJ4JigZwETsW-S_KrHkg)
The text was updated successfully, but these errors were encountered: