Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Project#archived? was only a recent addition to Redmine trunk

  • Loading branch information...
commit d9aa4498beb554f093d5a9429e42b52f8718bdfd 1 parent d7fe2ad
@edavis10 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/timesheet_plugin/patches/user_patch.rb
View
2  lib/timesheet_plugin/patches/user_patch.rb
@@ -18,7 +18,7 @@ module InstanceMethods
# Wrapper for User#allowed_to? that doesn't reject archived projects
# automatically
def allowed_to_on_single_potentially_archived_project?(action, context, options={})
- if Setting.plugin_timesheet_plugin['project_status'] == 'all' && context && context.is_a?(Project) && context.archived?
+ if Setting.plugin_timesheet_plugin['project_status'] == 'all' && context && context.is_a?(Project) && !context.active?
# Duplicated from User#allowed_to? but without the archived project guard
# No action allowed on disabled modules
return false unless context.allows_to?(action)
Please sign in to comment.
Something went wrong with that request. Please try again.