add check for local_channel()
This commit is contained in:
parent
9af1b62bee
commit
1353c291e9
@ -11,6 +11,10 @@ class Oauth extends Controller {
|
|||||||
|
|
||||||
function post() {
|
function post() {
|
||||||
|
|
||||||
|
if(! local_channel())
|
||||||
|
return;
|
||||||
|
|
||||||
|
|
||||||
if(! Apps::system_app_installed(local_channel(), 'OAuth Apps Manager'))
|
if(! Apps::system_app_installed(local_channel(), 'OAuth Apps Manager'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -86,6 +90,9 @@ class Oauth extends Controller {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
|
||||||
|
if(! local_channel())
|
||||||
|
return;
|
||||||
|
|
||||||
if(! Apps::system_app_installed(local_channel(), 'OAuth Apps Manager')) {
|
if(! Apps::system_app_installed(local_channel(), 'OAuth Apps Manager')) {
|
||||||
//Do not display any associated widgets at this point
|
//Do not display any associated widgets at this point
|
||||||
App::$pdl = '';
|
App::$pdl = '';
|
||||||
|
@ -11,6 +11,9 @@ class Oauth2 extends Controller {
|
|||||||
|
|
||||||
function post() {
|
function post() {
|
||||||
|
|
||||||
|
if(! local_channel())
|
||||||
|
return;
|
||||||
|
|
||||||
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager'))
|
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager'))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -93,6 +96,9 @@ class Oauth2 extends Controller {
|
|||||||
|
|
||||||
function get() {
|
function get() {
|
||||||
|
|
||||||
|
if(! local_channel())
|
||||||
|
return;
|
||||||
|
|
||||||
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager')) {
|
if(! Apps::system_app_installed(local_channel(), 'OAuth2 Apps Manager')) {
|
||||||
//Do not display any associated widgets at this point
|
//Do not display any associated widgets at this point
|
||||||
App::$pdl = '';
|
App::$pdl = '';
|
||||||
|
Reference in New Issue
Block a user