[opencms-dev] System login and access rights
Olli Aro
olli_aro at yahoo.co.uk
Mon Sep 29 12:48:02 CEST 2003
cms.LoginUser should create the user session (session id held in a browser
cookie). You can check that the user has logged in (and the session creation
has worked ok) by including cms.getCmsRequestContext.currentUser().getName()
within your template.
The standard navigation creation stuff should work ok and hide those folder
automatically, the user is not allowed to access. However I have noticed
that old xml templates for navigation are not 100% bullet proof, so you
better of creating your navigations in JSPs.
Olli
> -----Original Message-----
> From: opencms-dev-admin at opencms.org
> [mailto:opencms-dev-admin at opencms.org]On Behalf Of enol
> Sent: 29 September 2003 10:56
> To: opencms-dev at opencms.org
> Subject: Re: [opencms-dev] System login and access rights
>
>
> I tried to impelement what you said before but I'm not sure
> about its complete behaviour...
> The user logged in and I made built the navigation tree
> which is not actually the right one, which means that that
> user can access to resources whch has no rights for....
> So the final question is : is there any method to build the
> navigation tree appropriate for the user who has logged in ?
> Thanks
>
> Enol
>
>
> ----- Original Message -----
> From: "Olli Aro" <olli_aro at yahoo.co.uk>
> To: <opencms-dev at opencms.org>
> Sent: Monday, September 29, 2003 11:37 AM
> Subject: RE: [opencms-dev] System login and access rights
>
>
> > Yes, you can use cms.loginUser(String userid, String password)
> within your
> > template class / template JSP.
> >
> > Olli
> >
> > > -----Original Message-----
> > > From: opencms-dev-admin at opencms.org
> > > [mailto:opencms-dev-admin at opencms.org]On Behalf Of enol
> > > Sent: 29 September 2003 08:00
> > > To: opencms-dev at opencms.org
> > > Subject: [opencms-dev] System login and access rights
> > >
> > >
> > > Hi List,
> > > I would want to use the system login (with loginUser() and/or
> > > loginWebUser() methods) of OpenCms in order to enter in
> > > my website.
> > > In this way I would want to use the access rights
> > > on my folders and subfolders to show to the (registered)
> > > user just some resources.
> > > Is it possible? How can i do it?
> > >
> > > Thanks for any info,
> > > EnOl.
> > >
> > >
> > > _______________________________________________
> > > This mail is send to you from the opencms-dev mailing list
> > > To change your list options, or to unsubscribe from the list, please
> visit
> > > http://mail.opencms.org/mailman/listinfo/opencms-dev
> > > ---
> > > Incoming mail is certified Virus Free.
> > > Checked by AVG anti-virus system (http://www.grisoft.com).
> > > Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
> > >
> > ---
> > Outgoing mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
> >
> >
> > _______________________________________________
> > This mail is send to you from the opencms-dev mailing list
> > To change your list options, or to unsubscribe from the list,
> please visit
> > http://mail.opencms.org/mailman/listinfo/opencms-dev
> >
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.516 / Virus Database: 313 - Release Date: 01/09/2003
More information about the opencms-dev
mailing list