On Thu, 22 Jul 2004 18:28:56 -0400, Joe Rinehart
<[EMAIL PROTECTED]> wrote:
> I've used this approach, but I've liked using structures of roles more
> than arrays.  It lets me do a userIsInRole(string rolename) method
> that just returns structKeyExists(variables.instance.roles,
> "employee").   I was wondering what you thought of this approach?

Well, that only allows a user to have one employee role and one
faculty role and one student role (at a time).


In my case, this would be the rule, I think.


Walking the array and returning true if rolename is
role[n].getRoleName() is more flexible.


If I have three CFCs (Employee, Faculty, Student), each would have a
Rolename attached to it.  Basically, the role name would be Employee,
Faculty, Student.


If I created another instance of the Student CFC and added it to the
Roles array, how would I then tell the two Student CFC instances from
one another?  Would I need to Init() each instance with a unique value?


Thanks
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to