From 8783ccfd727dc4834c1f3c9460f851350fc912f4 Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sat, 25 Feb 2017 16:22:09 -0800 Subject: 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. --- include/widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/widgets.php b/include/widgets.php index 04cf0d30b..14345cf2f 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -1566,7 +1566,7 @@ function widget_admin($arr) { */ if(! is_site_admin()) { - return login(false); + return ''; } $o = ''; -- cgit v1.2.3