Fixed permission for tags to depend on a site's status
This commit is contained in:
parent
33e1680969
commit
59a8546b91
1 changed files with 4 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue