aboutsummaryrefslogtreecommitdiffstats
path: root/include/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/api.php')
-rw-r--r--include/api.php4
1 files changed, 2 insertions, 2 deletions
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);