pyc-website
main website for pyc inc.
git clone https://9o.is/git/pyc-website.git
commit 075940cee52030f519071b10bd7fa50c148160b1 parent d9aad5d6cde28c63cfe306bd7c1da4d16ce9260e Author: Jul <jul@9o.is> Date: Mon, 1 Sep 2014 10:42:35 -0400 User model function 'hasAddress' Diffstat:
| M | src/main/scala/inc/pyc/model/User.scala | | | 2 | ++ |
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/main/scala/inc/pyc/model/User.scala b/src/main/scala/inc/pyc/model/User.scala @@ -89,6 +89,8 @@ object User extends User with ProtoAuthUserMeta[User] with RogueMetaRecord[User] def findByStringId(id: String): Box[User] = if (ObjectId.isValid(id)) find(new ObjectId(id)) else Empty + + def hasAddress(in: String): Boolean = addresses.exists(in) override def onLogIn: List[User => Unit] = List(user => User.loginCredentials.remove()) override def onLogOut: List[Box[User] => Unit] = List(