Hi,

This can have several reasons. The easiest solution is to set 

services.VelocityService.default.screen = SecureScreen

In your TR.props. And modify the isAuthorized() Method in
SecureScreen.java to your liking.

Here is a sample from my SecureScreen.java:

    protected boolean isAuthorized( RunData data )  throws Exception
    {
        boolean isAuthorized = false;

        AccessControlList acl = data.getACL();

        if ( data.getUser().hasLoggedIn() && acl != null )
        {
          isAuthorized = true;
        }
        else if( acl != null && acl.hasRole("turbine_root"))
        {
            isAuthorized = true;
        }
        else
        {
            data.setScreenTemplate(
                TurbineResources.getString("template.login"));

            isAuthorized = false;
        }
        return isAuthorized;
    }

Kind regards
 
J�rgen Hoffmann


-----Urspr�ngliche Nachricht-----
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] 
Gesendet: Mittwoch, 9. Oktober 2002 12:11
An: [EMAIL PROTECTED]
Betreff: Secutity 


Hello!
I have laid out a new user (without role).
With this user a Login is carried out.
Once again, I get the Login-Screen if I, however, call a link on a
static 
Template.
If I call on a Template that class corresponds with one upon a link, I 
don't get the Login.
Where is the reason for it?

                                Thomas

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



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

Reply via email to