jigarius / toggl2redmine

Import time from Toggl 2 Redmine.
GNU General Public License v3.0
26 stars 6 forks source link

Disallow logging time on closed projects #62

Closed kporras07 closed 3 years ago

kporras07 commented 3 years ago

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:

  1. Close an existing project
  2. Track time in Toggl for an issue in the closed project
  3. Go to import time in Redmine
  4. Select the time entries for the closed project
  5. 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.