[opencms-dev] How can I obtain the user logged?
Irene Santerini
i.santerini at inera.it
Tue Dec 23 10:06:02 CET 2003
Hi,
....................
CmsRequestContext reqCont = cms.getRequestContext();
int id_user = reqCont.currentUser().getId();
int id_group = reqCont.currentUser().getDefaultGroupId();
....................
...................
where cms -> CmsObject
I hope this can help you.
Bye and merry christmas.
Irene
----- Original Message -----
From: "Salvador Santander Gutierrez"
<salvador.santander.ext at juntadeandalucia.es>
To: <opencms-dev at opencms.org>
Sent: Tuesday, December 23, 2003 9:43 AM
Subject: Re: [opencms-dev] How can I obtain the user logged?
> ok, but what I need is to know the logged user to know if to allow the
> access to the channel.
> Thanks.
>
> ----- Original Message -----
> From: "Thomas März" <thomasmaerz at gmx.de>
> To: <opencms-dev at opencms.org>
> Sent: Tuesday, December 23, 2003 9:15 AM
> Subject: Re: [opencms-dev] How can I obtain the user logged?
>
>
> > "Salvador Santander Gutierrez"
> <salvador.santander.ext at juntadeandalucia.es> writes:
> >
> > > I want to get the user who has enter in OpenCMS administration, to
know
> if
> > > the user has access to some channels, but I didn´t find any method for
> this.
> > > Anybody knows any method or way to get this ?
> >
> > ,----[ com.opencms.defaults.master.CmsChannelContent ]
> > | /**
> > | * Gets the accessflags of the channel
> > | */
> > | public int getAccessFlags() {
> > | return m_accessflags;
> > | }
> > `----
> >
> > _______________________________________________
> > 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
>
More information about the opencms-dev
mailing list