Bug summary
Redmine doesn't allow creating time entries on closed projects but this plugin is allowing it because there is an access check for admin users that allows it.
To Reproduce
Steps to reproduce the behavior:
Close an existing project
Track time in Toggl for an issue in the closed project
Go to import time in Redmine
Select the time entries for the closed project
Click Import. It works but it should fail.
Expected behavior
Importing time entries on closed projects should not be allowed because they are read-only.
Let me know if you need any more info. I'll provide a PR with what looks to me like a fix.
Bug summary Redmine doesn't allow creating time entries on closed projects but this plugin is allowing it because there is an access check for admin users that allows it.
To Reproduce Steps to reproduce the behavior:
Expected behavior Importing time entries on closed projects should not be allowed because they are read-only.
Let me know if you need any more info. I'll provide a PR with what looks to me like a fix.