Skip to content
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

compatibility with redmine 5.0 #90

Open
bendevos opened this issue Sep 18, 2023 · 0 comments
Open

compatibility with redmine 5.0 #90

bendevos opened this issue Sep 18, 2023 · 0 comments

Comments

@bendevos
Copy link

It works with administrators but I get following 500 errors with other users

I, [2023-09-18T12:58:51.266223 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Started GET "/timesheet/index" for 109.135.24.76 at 2023-09-18 12:58:51 +0200
I, [2023-09-18T12:58:51.266710 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Processing by TimesheetController#index as HTML
I, [2023-09-18T12:58:51.268806 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Current user: [email protected] (id=231)
I, [2023-09-18T12:58:51.621926 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Rendered plugins/redmine_timesheet_plugin/app/views/timesheet/index.html.erb within layouts/base (Duration: 136.5ms | Allocations: 239192)
I, [2023-09-18T12:58:51.624498 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Rendered inline template (Duration: 0.3ms | Allocations: 163)
I, [2023-09-18T12:58:51.624922 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Rendered inline template (Duration: 0.2ms | Allocations: 159)
I, [2023-09-18T12:58:51.648236 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Rendered layout layouts/base.html.erb (Duration: 162.9ms | Allocations: 267577)
I, [2023-09-18T12:58:51.648421 #3677647] INFO -- : [b20324a8-06d2-46cb-899c-be9edc8f1054] Completed 200 OK in 382ms (Views: 161.8ms | ActiveRecord: 23.3ms | Allocations: 615570)
I, [2023-09-18T12:58:55.984889 #3677647] INFO -- : [bb4d3f66-a537-4679-9706-aed33e834952] Started POST "/timesheet/report" for 109.135.24.76 at 2023-09-18 12:58:55 +0200
I, [2023-09-18T12:58:55.985445 #3677647] INFO -- : [bb4d3f66-a537-4679-9706-aed33e834952] Processing by TimesheetController#report as HTML
I, [2023-09-18T12:58:55.985525 #3677647] INFO -- : [bb4d3f66-a537-4679-9706-aed33e834952] Parameters: {"utf8"=>"✓", "authenticity_token"=>"7sLCt7m4zUpGgLOjyNskBTNu3aCnLCJzXxDbqWyVLOktpAfSo3LesW1scWgIz4JC3HtnoD1uwE++zpsXFU4seQ==", "timesheet"=>{"period_type"=>"1", "period"=>"all", "date_from"=>"2023-08-01", "date_to"=>"2023-08-31", "sort"=>"project", "projects"=>["237"], "activities"=>["23", "18", "22", "21", "19", "8", "9", "11", "16", "20", "10", "26", "13", "15", "12", "25", "17"], "users"=>["116", "198", "203", "222", "182", "1", "262", "194", "213", "154", "232", "277", "223", "220", "190", "253", "67", "53", "288", "7", "71", "229", "185", "254", "237", "221", "231", "3", "261", "284", "255", "189", "24", "266", "249"]}, "commit"=>"Apply"}
I, [2023-09-18T12:58:55.987819 #3677647] INFO -- : [bb4d3f66-a537-4679-9706-aed33e834952] Current user: [email protected] (id=XXX)
I, [2023-09-18T12:58:56.257376 #3677647] INFO -- : [bb4d3f66-a537-4679-9706-aed33e834952] Completed 500 Internal Server Error in 272ms (ActiveRecord: 21.9ms | Allocations: 352815)
F, [2023-09-18T12:58:56.257864 #3677647] FATAL -- : [bb4d3f66-a537-4679-9706-aed33e834952]
**[bb4d3f66-a537-4679-9706-aed33e834952] NoMethodError (undefined method allowed_to_on_single_potentially_archived_project?' for #<User:0x0000555e291cf610> Did you mean? allowed_to_view_all_time_entries?):** [bb4d3f66-a537-4679-9706-aed33e834952] [bb4d3f66-a537-4679-9706-aed33e834952] plugins/redmine_timesheet_plugin/app/models/timesheet.rb:389:in block in fetch_time_entries_by_project'
[bb4d3f66-a537-4679-9706-aed33e834952] plugins/redmine_timesheet_plugin/app/models/timesheet.rb:382:in each' [bb4d3f66-a537-4679-9706-aed33e834952] plugins/redmine_timesheet_plugin/app/models/timesheet.rb:382:in fetch_time_entries_by_project'
[bb4d3f66-a537-4679-9706-aed33e834952] plugins/redmine_timesheet_plugin/app/models/timesheet.rb:108:in fetch_time_entries' [bb4d3f66-a537-4679-9706-aed33e834952] plugins/redmine_timesheet_plugin/app/controllers/timesheet_controller.rb:65:in report'
[bb4d3f66-a537-4679-9706-aed33e834952] lib/redmine/sudo_mode.rb:61:in `sudo_mode'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant