It looks your code below references the 1.3a2 release.

This is the code from the cvs head:

    public void addUser( User user, String password, RunData data )
        throws Exception
    {
        addUser(user, password);

        for (int ix = 0; ix < roles.length; ix++)
        {
            try
            {
                grant(user, 
                      getGroup(JetspeedSecurity.JETSPEED_GROUP), 
                      getRole(roles[ix]));
<================================= roles[] from JR.p
            }
            catch(Exception e)
            {
                Log.error("Could not grant role: " + roles[ix] + " to
user " + user.getUserName(), e);
            }
        }
....



> -----Original Message-----
> From: Hugh Brien [mailto:[EMAIL PROTECTED]] 
> Sent: Tuesday, March 19, 2002 10:46 AM
> To: Jetspeed Users List
> Subject: RE: user rights management and user creation
> 
> 
> Just and FYI.  From the JetspeedSecurity class
> 
> public void addUser( User user, String password, RunData data )
>         throws Exception
>     {
>         addUser(user, password);
> 
>         grant(user, 
>               getGroup(JetspeedSecurity.JETSPEED_GROUP), 
>               getRole(JetspeedSecurity.JETSPEED_ROLE_USER));
> 
>         try
>         {
>             Profile profile = new BaseProfile();
>             profile.setUser(user);
>             profile.setMediaType("html");
>             Profiler.createProfile(data, profile);
>         }
>         catch (Exception e)
>         {
>             removeUser(user);
>             throw e;
>         }
>     }
> 
> 
> 



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

Reply via email to