summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-03-04 20:29:24 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-03-04 20:29:24 +0100
commit24ea6500cc5285aac7f02df7f535ea10f8f97729 (patch)
treeefe02572a83c915d108eaf7da5937f4186ca314f /inc/template.php
parent94eef7c677ed8192fffb32bcc3ae1cb34d5fcb5d (diff)
downloadrpg-24ea6500cc5285aac7f02df7f535ea10f8f97729.tar.gz
rpg-24ea6500cc5285aac7f02df7f535ea10f8f97729.tar.bz2
check manager/admin role earlier for admin plugins FS#2180
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php11
1 files changed, 3 insertions, 8 deletions
diff --git a/inc/template.php b/inc/template.php
index d29e3e779..0f0fb92a0 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -209,14 +209,9 @@ function tpl_admin(){
}
if ($plugin !== null){
- if($plugin->forAdminOnly() && !$INFO['isadmin']){
- msg('For admins only',-1);
- html_admin();
- }else{
- if(!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet
- if($INFO['prependTOC']) tpl_toc();
- $plugin->html();
- }
+ if(!is_array($TOC)) $TOC = $plugin->getTOC(); //if TOC wasn't requested yet
+ if($INFO['prependTOC']) tpl_toc();
+ $plugin->html();
}else{
html_admin();
}