Re: false sense of security?
Re: false sense of security?
- Subject: Re: false sense of security?
- From: David Teran <email@hidden>
- Date: Wed, 1 Sep 2004 23:24:17 +0200
Am 01.09.2004 um 17:47 schrieb William Norris:
However, it appears to me that WOConditional (or any Dynamic Element
for that matter) will not allow you to bind functions that take in
parameters. The only thing that actually works would be a series of
functions - userInAdminGroup(), userInStudentGroup(), etc... but as
far as I'm concerned, that's not even a viable option.
Create you own component: wrap a WOConditional inside this component
and inside the conditional a WOComponentContent. Then add API:
userGroupName, user and a method in your component:
public boolean hasPermission() {
return user.isInUserGroup(userGroupName);
}
thats all you need. Make them stateless and turn off binding
synchronization to speed things up.
regards David
_______________________________________________
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.