Enabled Site.searchbox_macro() for site owners

This commit is contained in:
Tobi Schäfer 2008-05-15 16:26:06 +00:00
parent 59e8c53efe
commit 8ecba3b16e

View file

@ -302,7 +302,9 @@ Site.prototype.listReferrers_macro = function(param) {
} }
Site.prototype.searchbox_macro = function(param) { Site.prototype.searchbox_macro = function(param) {
this.renderSkin("$Site#search"); if (this.getPermission("search")) {
this.renderSkin("Site#search");
}
return; return;
} }