e... little bug.

This commit is contained in:
yanxd 2013-11-28 17:25:09 +08:00
parent aa4596e170
commit b0f5f734e1
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ module Redmine
end
if provider_options.has_key?(:permission)
user1 = User.find_by_login('user')
user1 = User.find_by_admin(true)
scope = scope.scoped(:conditions => Project.allowed_to_condition(user1, provider_options[:permission] || :view_project, options))
elsif respond_to?(:visible)
scope = scope.visible(user1, options)