From 06eae98e53e7ac781a64eff4a85e793969124ad7 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Mon, 25 May 2015 22:50:36 -0700 Subject: placeholder for dynamic rego --- include/api.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/api.php') diff --git a/include/api.php b/include/api.php index fa4910833..cf0086c35 100644 --- a/include/api.php +++ b/include/api.php @@ -439,8 +439,8 @@ require_once('include/items.php'); // This currently isn't providing the correct authentication flow. - if(! api_user()) - return false; + if(! local_channel()) + goaway(z_root() . '/login'); $ret = array(); $key = random_string(16); -- cgit v1.2.3