diff options
-rw-r--r-- | core/View.php | 1 | ||||
-rw-r--r-- | plugins/SitesManager/templates/SitesManager.tpl | 4 |
2 files changed, 4 insertions, 1 deletions
diff --git a/core/View.php b/core/View.php index 24b7339738..4fdffdcfd6 100644 --- a/core/View.php +++ b/core/View.php @@ -74,6 +74,7 @@ class Piwik_View implements Piwik_iView // global value accessible to all templates: the piwik base URL for the current request $this->piwikUrl = Piwik_Url::getCurrentUrlWithoutFileName(); + $this->isSuperUser = Zend_Registry::get('access')->isSuperUser(); } /** diff --git a/plugins/SitesManager/templates/SitesManager.tpl b/plugins/SitesManager/templates/SitesManager.tpl index 39d7f9261a..4633791845 100644 --- a/plugins/SitesManager/templates/SitesManager.tpl +++ b/plugins/SitesManager/templates/SitesManager.tpl @@ -58,7 +58,9 @@ </tbody> </table> - <div class="addRowSite"><a href="#"><img src='plugins/UsersManager/images/add.png' alt="" /> {'SitesManager_AddSite'|translate}</a></div> + {if $isSuperUser} + <div class="addRowSite"><a href="#"><img src='plugins/UsersManager/images/add.png' alt="" /> {'SitesManager_AddSite'|translate}</a></div> + {/if} {/if} {include file="CoreAdminHome/templates/footer.tpl"} |