From: bg <brentgra...@gmail.com>
Date: Mon, 8 Oct 2012 05:09:30 -0700 (PDT)
Local: Mon, Oct 8 2012 8:09 am
Subject: Using a Box / Failure and how to set HTTP status code
Hi all, Three questions -> 1) Is this an appropriate way to use Box? val return_string = resourceAction.userAllowed("addConnection") match { Full(JsonResponse(JString(return_string))) } userAllowed //This is just checking that a bunch of criteria are met, and needs to def userAllowed(action: String): Box[Boolean] = { action match { Session.defaultEvent match { case "XYZ" => Session.currentUser match { //must be a XYZ event user.type.get match { You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||