aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-02-25 16:22:09 -0800
committerzotlabs <mike@macgirvin.com>2017-02-25 16:22:09 -0800
commit8783ccfd727dc4834c1f3c9460f851350fc912f4 (patch)
treeca30942fe4c748a43baf2d9600ae040201b74bd7 /Zotlabs
parent92615247ac46e708de46651f21a4a179c38068c4 (diff)
downloadvolse-hubzilla-8783ccfd727dc4834c1f3c9460f851350fc912f4.tar.gz
volse-hubzilla-8783ccfd727dc4834c1f3c9460f851350fc912f4.tar.bz2
volse-hubzilla-8783ccfd727dc4834c1f3c9460f851350fc912f4.zip
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.
Diffstat (limited to 'Zotlabs')
-rw-r--r--Zotlabs/Web/Router.php6
1 files changed, 0 insertions, 6 deletions
diff --git a/Zotlabs/Web/Router.php b/Zotlabs/Web/Router.php
index ba2e78b25..948f073d6 100644
--- a/Zotlabs/Web/Router.php
+++ b/Zotlabs/Web/Router.php
@@ -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.
* Otherwise, look for the standard program module