public function disapproveList()
 {
     $admin = App::make('loggedInAdmin');
     $listId = Input::get('list-id');
     $redirectUrl = Input::get('redirect-url');
     $changesOnly = Input::get('changes-only');
     if (!$listId) {
         return 'List ID not passed';
     }
     try {
         $list = ViralList::findOrFail($listId);
         if ($changesOnly) {
             $list->pendingChanges()->delete();
         } else {
             $list->markAsDisapproved();
             $list->save();
         }
         return Redirect::to(Helpers::getUrlWithQuery(array('status' => 'awaiting_approval'), route('adminViewLists')));
     } catch (ModelNotFoundException $e) {
         return Response::error("Error finding list with id " . $listId);
     }
 }
 public function publishList()
 {
     $listId = Input::get('list-id');
     if (!$listId) {
         return Response::notFound();
     }
     try {
         $list = ViralList::findOrFail($listId);
         $this->_ensurePermission($list);
     } catch (\Illuminate\Database\Eloquent\ModelNotFoundException $e) {
         if (Request::ajax()) {
             return Response::error($e->getMessage());
         } else {
             return Response::notFound();
         }
     }
     $this->_setApprovalStatusOnPublish($list);
     $list->save();
     return Response::json(array('success' => 1, 'status' => $list->status, 'list' => $list, 'viewListUrl' => ListHelpers::viewListUrl($list), 'previewListUrl' => route('previewList', array('list-id' => $list->id))));
 }