Permalink
Browse files

Updated boolean shit... damned

  • Loading branch information...
1 parent 7e66818 commit df5265956a87e602e5e51eaa4df4e3f2bbc7acf3 @jbbarth jbbarth committed Feb 1, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/models/author.rb
View
2 app/models/author.rb
@@ -88,7 +88,7 @@ def self.get_all_active
# authorize a author for access to the admin section and xmlrpc access
def self.authorize(email, pass, do_hash = false, return_id = false)
pass = (do_hash ? self.do_password_hash(pass) : pass)
- @author = Author.find(:first, :conditions => ['email = ? and hashed_pass = ? and is_active = ?', email, pass, true])
+ @author = Author.find(:first, :conditions => ['email = ? and hashed_pass = ? and is_active = ?', email, pass, 1])
return (return_id ? @author : (@author ? true : false))
end

0 comments on commit df52659

Please sign in to comment.