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 () {
|
function main_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth(this.getParentElement ())==false)
|
||||||
|
return;
|
||||||
this.renderSkin ("frameset");
|
this.renderSkin ("frameset");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function prototypes_action () {
|
function prototypes_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth(this.getParentElement ())==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("prototypes");
|
res.data.body = this.renderSkinAsString ("prototypes");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function summary_action () {
|
function summary_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth(this.getParentElement ())==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("summary");
|
res.data.body = this.renderSkinAsString ("summary");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function functionindex_action () {
|
function functionindex_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth(this.getParentElement ())==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("functionindex");
|
res.data.body = this.renderSkinAsString ("functionindex");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function render_action () {
|
function render_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth(this.getParentElement ())==false)
|
||||||
|
return;
|
||||||
res.writeln("<html><head><title>render</title></head><body>rendering API ... ");
|
res.writeln("<html><head><title>render</title></head><body>rendering API ... ");
|
||||||
var prefix = this.href ("");
|
var prefix = this.href ("");
|
||||||
this.storePage (this, "main");
|
this.storePage (this, "main");
|
||||||
|
|
|
@ -1,5 +1,8 @@
|
||||||
function main_action () {
|
function main_action () {
|
||||||
this.getParentElement ().readFiles ();
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth()==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("main");
|
res.data.body = this.renderSkinAsString ("main");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,17 @@
|
||||||
function list_action () {
|
function list_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth()==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("list");
|
res.data.body = this.renderSkinAsString ("list");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
||||||
function main_action () {
|
function main_action () {
|
||||||
|
if (checkAddress()==false)
|
||||||
|
return;
|
||||||
|
if (checkAuth()==false)
|
||||||
|
return;
|
||||||
res.data.body = this.renderSkinAsString ("main");
|
res.data.body = this.renderSkinAsString ("main");
|
||||||
renderSkin ("api");
|
renderSkin ("api");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue