/** User removes himself from a mailing list */ public static function unsubscribe() { $user = self::getUser(); if (!$user) { return RedView::set('error', "You're not on any of our lists."); } if (!($list = self::getList())) { return RedView::set('error', "List doesn't exist."); } R::unassociate($list, $user); }