re-added access check to actions
This commit is contained in:
parent
604ab4f8ba
commit
cd8ebdd41b
3 changed files with 32 additions and 1 deletions
|
@ -1,27 +1,47 @@
|
|||
function main_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth(this.getParentElement ())==false)
|
||||
return;
|
||||
this.renderSkin ("frameset");
|
||||
}
|
||||
|
||||
|
||||
function prototypes_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth(this.getParentElement ())==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("prototypes");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
||||
|
||||
function summary_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth(this.getParentElement ())==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("summary");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
||||
|
||||
function functionindex_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth(this.getParentElement ())==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("functionindex");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
||||
|
||||
function render_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth(this.getParentElement ())==false)
|
||||
return;
|
||||
res.writeln("<html><head><title>render</title></head><body>rendering API ... ");
|
||||
var prefix = this.href ("");
|
||||
this.storePage (this, "main");
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
function main_action () {
|
||||
this.getParentElement ().readFiles ();
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth()==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("main");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
|
|
@ -1,9 +1,17 @@
|
|||
function list_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth()==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("list");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
||||
function main_action () {
|
||||
if (checkAddress()==false)
|
||||
return;
|
||||
if (checkAuth()==false)
|
||||
return;
|
||||
res.data.body = this.renderSkinAsString ("main");
|
||||
renderSkin ("api");
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue