app/models/pbw/trigger.rb in pbw-0.0.10 vs app/models/pbw/trigger.rb in pbw-0.1.0

- old
+ new

@@ -5,10 +5,10 @@ belongs_to :process, :class_name => 'Pbw::Process' def self.viewable_by?(user, subject) return true if user.admin? subject.tokens.each do |token| - return true token.user && token.user == user + return true if token.user && token.user == user end false end def self.creatable_by?(user, subject)