Fixed generic permission model to redirect to login page if anonymous user was not granted access
This commit is contained in:
parent
b3a85c5998
commit
3e32e976db
3 changed files with 10 additions and 5 deletions
|
@ -108,7 +108,6 @@ Site.prototype.getPermission = function(action) {
|
|||
case "rss.xsl":
|
||||
case "search":
|
||||
case "stories.xml":
|
||||
case "tags":
|
||||
return Site.require(Site.PUBLIC) ||
|
||||
(Site.require(Site.RESTRICTED) &&
|
||||
Membership.require(Membership.CONTRIBUTOR)) ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue