diff --git a/app/controllers/timesheet_controller.rb b/app/controllers/timesheet_controller.rb index 0e94679..e8b7078 100644 --- a/app/controllers/timesheet_controller.rb +++ b/app/controllers/timesheet_controller.rb @@ -124,7 +124,7 @@ def allowed_projects elsif Setting.plugin_timesheet_plugin['project_status'] == 'all' Project.timesheet_order_by_name.timesheet_with_membership(User.current) else - Project.timesheet_order_by_name.all(:conditions => Project.visible_by(User.current)) + Project.timesheet_order_by_name.all(:conditions => Project.visible_condition(User.current)) end end