aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Oauth2.php
diff options
context:
space:
mode:
Diffstat (limited to 'Zotlabs/Module/Oauth2.php')
-rw-r--r--Zotlabs/Module/Oauth2.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Zotlabs/Module/Oauth2.php b/Zotlabs/Module/Oauth2.php
index 4c34b499f..c27d7534b 100644
--- a/Zotlabs/Module/Oauth2.php
+++ b/Zotlabs/Module/Oauth2.php
@@ -11,6 +11,9 @@ class Oauth2 extends Controller {
function post() {
+ if(! local_channel())
+ return;
+
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager'))
return;
@@ -93,6 +96,9 @@ class Oauth2 extends Controller {
function get() {
+ if(! local_channel())
+ return;
+
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager')) {
//Do not display any associated widgets at this point
App::$pdl = '';