You assigned these roles user user2
Notice the space in front of user2? That space counts. You need to set the roles w/ no white space around them. ======================================================================== === Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc (www.mindseye.com) Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia) Email : [EMAIL PROTECTED] Blog : www.camdenfamily.com/morpheus/blog Yahoo IM : morpheus "My ally is the Force, and a powerful ally it is." - Yoda > -----Original Message----- > From: St�phane_Bisson [mailto:[EMAIL PROTECTED] > Sent: Monday, August 04, 2003 8:54 PM > To: CF-Talk > Subject: cfloginuser attribute "roles" question > > > I'm just questionning about the cf tag cfloginuser attribute > "roles". Roles has a "s" meaning that I can put many roles > for a user. I try to put myseft this set of roles in the user table... > > user_tbl.nickname ='stef' > user_tbl.role 1 = 'user, user2' 2= 'user; user2' 3= > 'user user2' > > the login.cfc is doing... > > <cflogin idletimeout="#request.Session_Elapsed_TimeSS#"> > <cfloginuser name="#user_tbl.nickname#" > password="#user_tbl.password#" > roles="#user_tbl.role#"> > > > and when I try to call the method below... > > <cffunction name="MailList" access="remote" > returnType="query" roles="user2" > > and CF gives me... Current user was not authorized to invoke > this method > > How can I make a user has many roles! and be able to execute > the CFC methods that belongs to these roles.. I don't want to > have to create many user ids to go everywhere in our site... > Stef has an user... StefAdmin has an Administration of our > site... etc.. > > Thanks > > Stephane > > > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Signup for the Fusion Authority news alert and keep up with the latest news in ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

