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();
|
var url = this._parent.href();
|
||||||
this.checkAdd(usr, level);
|
this.checkAdd(usr, level);
|
||||||
break;
|
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" :
|
case "create" :
|
||||||
checkIfLoggedIn();
|
checkIfLoggedIn();
|
||||||
var url = this.href();
|
var url = this.href();
|
||||||
|
|
Loading…
Add table
Reference in a new issue