Hi Devs, 

I've made a static method into the ServletHelper Class which checks if 
enebale-upload is true or false in web.xml. So far it works as it should but, 
if upload is set to false the "Asset" Tab in the Sitearea isnt visible.

Assets.java:
...
    protected void doCheckPreconditions() throws Exception {    
        if (!ServletHelper.isUploadEnabled(manager)) {
            addErrorMessage("Upload is not enabled please check l.b.p!");
        }
    }
....

Because the preconditions wont run successfully if enable-upload is false; the 
GUIManager wont show the Tab for the Assets.

How would I solve this, overriding another Method in the Asset usecase or do I 
have to enhance the GUIManager?


Ty for any help,
Oliver



-- 
Oliver Schalch                           [EMAIL PROTECTED]
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com                      http://lenya.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to