@@ -90,7 +90,7 class Project < ActiveRecord::Base | |||
|
90 | 90 | scope :status, lambda {|arg| where(arg.blank? ? nil : {:status => arg.to_i}) } |
|
91 | 91 | scope :all_public, lambda { where(:is_public => true) } |
|
92 | 92 | scope :visible, lambda {|*args| where(Project.visible_condition(args.shift || User.current, *args)) } |
|
93 |
scope :allowed_to, lambda {|*args| |
|
|
93 | scope :allowed_to, lambda {|*args| | |
|
94 | 94 | user = User.current |
|
95 | 95 | permission = nil |
|
96 | 96 | if args.first.is_a?(Symbol) |
General Comments 0
You need to be logged in to leave comments.
Login now