added cases for actions "open" and "mypolls"
This commit is contained in:
parent
21076f4d18
commit
18ca823342
1 changed files with 10 additions and 0 deletions
|
@ -13,6 +13,16 @@ function checkAccess(action, usr, level) {
|
|||
var url = this._parent.href();
|
||||
this.checkAdd(usr, level);
|
||||
break;
|
||||
case "open" :
|
||||
checkIfLoggedIn(this.href(req.action));
|
||||
var url = this._parent.href();
|
||||
this.checkAdd(usr, level);
|
||||
break;
|
||||
case "mypolls" :
|
||||
checkIfLoggedIn(this.href(req.action));
|
||||
var url = this._parent.href();
|
||||
this.checkAdd(usr, level);
|
||||
break;
|
||||
case "create" :
|
||||
checkIfLoggedIn();
|
||||
var url = this.href();
|
||||
|
|
Loading…
Add table
Reference in a new issue