Re: false sense of security?
Re: false sense of security?
- Subject: Re: false sense of security?
- From: William Norris <email@hidden>
- Date: Wed, 1 Sep 2004 12:04:30 -0500
On Wed, 01 Sep 2004 11:54:52 -0400, Arturo Perez <email@hidden> wrote:
> Yeah, that's kind of annoying. Off the top of my head I can think of
> several hacks to get around it. I think using the ComponentContent
> design pattern I hinted at above is the cleanest solution. An
> alternative which may be easier to is put your method in session without
> any parameters (e.g. public boolean userPermitted()) since that's where
> your user information is likely to be. But that only works if the
> "group" information is relatively static (e.g. permissions on all pages
> are relatively the same).
>
> For things like this I've often wished that WOComponent had a UserInfo.
What kind of hacks were you thinking about? I'm primarily using this
to build a navigation menu that is specific for the current user, so I
need it to be as flexible as possible. The only thing that MIGHT be
static is the user. I'm probably only going to be concerned with the
currently logged in user, but it'd be nice leave that flexible as
well. the problem I see with the ComponentContent approach (as i
understand it), is that I would have to create a new component for
each link.... isn't that using a lot more memory than should be
expended for something simple like this?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.