Fixed permission for tags to depend on a site's status

This commit is contained in:
Tobi Schäfer 2008-05-14 09:11:04 +00:00
parent 33e1680969
commit 59a8546b91

View file

@ -35,7 +35,11 @@ Tag.prototype.constructor = function(name, site, type) {
}
Tag.prototype.getPermission = function(action) {
if (!res.handlers.site.getPermission("main")) {
return false;
}
switch (action) {
case ".":
case "main":
case "rss.xml":
return true;