removed link_macro() and moved check for access permission (param.checkdeny) to hopobject/macros.js:link_macro()
This commit is contained in:
parent
a64eae6318
commit
9cd45dea94
1 changed files with 0 additions and 15 deletions
|
@ -7,18 +7,3 @@ function pollList_macro(param) {
|
|||
res.write(res.data.pollList);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
function link_macro(param) {
|
||||
if (param.checkdeny == "true") {
|
||||
if (this.isDenied(session.user))
|
||||
return("");
|
||||
}
|
||||
|
||||
this.openLink(param);
|
||||
if (param.text)
|
||||
res.write(param.text);
|
||||
else
|
||||
res.write(param.to ? param.to : param.linkto);
|
||||
this.closeLink();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue