e... little bug.
This commit is contained in:
parent
aa4596e170
commit
b0f5f734e1
|
@ -103,7 +103,7 @@ module Redmine
|
||||||
end
|
end
|
||||||
|
|
||||||
if provider_options.has_key?(:permission)
|
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))
|
scope = scope.scoped(:conditions => Project.allowed_to_condition(user1, provider_options[:permission] || :view_project, options))
|
||||||
elsif respond_to?(:visible)
|
elsif respond_to?(:visible)
|
||||||
scope = scope.visible(user1, options)
|
scope = scope.visible(user1, options)
|
||||||
|
|
Loading…
Reference in New Issue