add check for local_channel()

This commit is contained in:
Mario Vavti
2018-09-26 16:32:06 +02:00
parent 9af1b62bee
commit 1353c291e9
2 changed files with 13 additions and 0 deletions

View File

@@ -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 = '';