re-added access check to actions

This commit is contained in:
stefanp 2002-11-22 11:55:42 +00:00
parent 604ab4f8ba
commit cd8ebdd41b
3 changed files with 32 additions and 1 deletions

View file

@ -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");

View file

@ -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");
} }

View file

@ -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");
} }