move admin permission decision out of the router - it is already provided in the module and the higher level check is causing some oembed redirect issues.
This commit is contained in:
parent
92615247ac
commit
8783ccfd72
@ -62,12 +62,6 @@ class Router {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if((strpos($module,'admin') === 0) && (! is_site_admin())) {
|
|
||||||
\App::$module_loaded = false;
|
|
||||||
notice( t('Permission denied.') . EOL);
|
|
||||||
goaway(z_root());
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* If the site has a custom module to over-ride the standard module, use it.
|
* If the site has a custom module to over-ride the standard module, use it.
|
||||||
* Otherwise, look for the standard program module
|
* Otherwise, look for the standard program module
|
||||||
|
@ -1566,7 +1566,7 @@ function widget_admin($arr) {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if(! is_site_admin()) {
|
if(! is_site_admin()) {
|
||||||
return login(false);
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
$o = '';
|
$o = '';
|
||||||
|
Reference in New Issue
Block a user