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
As a TeamLead user of Team A, in a Project inside a team-limited Customer to Team A, do the following.
Open a project administration page.
Click on the + to add an activity.
Fill out the only required field (Name).
Click the Save button.
The form is shown again with the error This form should not contain extra fields. The fields related to the budget are not shown anymore.
Click the Save button again, it works.
When doing the same as the System-Admin, I do not have the error showing up. In the past, I modified my Teamlead role permissions so that they can create activity and projects inside a customer they have access. I suspect I didn't add all the required permissions. Is there an easy way to "dump" the current role permissions to help debug?
Otherwise, since the form does save correctly once the field are removed, maybe the form could be loaded without the related fields is the user does not have the required roles?
I found one place that might be related, even though I am not sure. I hope it can fix this problem.
My assumption is that after submitting the form, the project is loaded too late and therefor the permission is checked globally. And the global budget permission is not active for teamleads (only this project specific one).
Anyway, this is the commit: 42bb2f5
you could try to change it on your end and retest.
Describe the issue
As a TeamLead user of Team A, in a Project inside a team-limited Customer to Team A, do the following.
+
to add an activity.Save
button.This form should not contain extra fields
. The fields related to the budget are not shown anymore.Save
button again, it works.When doing the same as the System-Admin, I do not have the error showing up. In the past, I modified my Teamlead role permissions so that they can create activity and projects inside a customer they have access. I suspect I didn't add all the required permissions. Is there an easy way to "dump" the current role permissions to help debug?
Otherwise, since the form does save correctly once the field are removed, maybe the form could be loaded without the related fields is the user does not have the required roles?
#2765 seems related.
I already tried
Kimai version
2.15.0
How do you run Kimai?
Docker
Which PHP version are you using?
8.2
Logfile
No response
Screenshots
The text was updated successfully, but these errors were encountered: