I have a ticket type which allows users to create tickets, in there they can select a department through a dropdown of the Farcry groups, i did this as i want to use existing structure as much as possible.
Although these are groups used for permissions, why not use it again? Is this advisable to do so? Now, when a user creates a ticket the createdby field gets a nice (in this case) "farcry". If i want to collect the email address for this person i need to address the table dmprofile. So the type createdby value: "farcry" needs to match the userName field in table dmprofile: farcry_CLIENTUD Now i match the user by using: <cfset setusername = stTicket.createdby & "_CLIENTUD"> and selecting from table dmprofile with: <cfset stprops.userName = setusername /> Is that the way to do so? Then i come to the point that based on the chosen department for the ticket (through the dropdown of the Farcry groups) i want to select the users from dmProfile that have this department (actually Farcry group) assigned. So for that of course you can think of a construction, but my question is, is this the way to do so? Thank you On Dec 2, 6:29 pm, Marco van den Oever <[EMAIL PROTECTED]> wrote: > Thanks both, that will do it :) > > On Dec 2, 3:57 am, "Blair McKenzie" <[EMAIL PROTECTED]> wrote: > > > application.security.getCurrentUserID() returns the current userid or an > > empty string for no logged in user. > > > application.security.isLoggedIn() returns true / false > > > Blair > > > On Tue, Dec 2, 2008 at 1:34 PM, Tomek Kott <[EMAIL PROTECTED]> wrote: > > > i think there is a application.security.isLogged() function (or something > > > similar to it, check the dmSecurity / security.cfc. I would probably say > > > to > > > use that in case the session variable ever gets updated to something > > > different or userid gets renamed. > > > Otherwise I would say you're fine as long as you're checking that after > > > users have signed in. > > > > Tomek > > > > On Mon, Dec 1, 2008 at 9:13 PM, Marco van den Oever < > > > [EMAIL PROTECTED]> wrote: > > > >> What is the official way to get the logged in user data? > > > >> For instance now i use session.dmsec.AUTHENTICATION.userid to get the > > >> logged in userid, i have chosen this because i am afraid that if the > > >> profile isn't filled in, the code will not work. > > > >> How do you do it? And should you always point out to users they HAVE > > >> to fill in the profile or else the plugin etc doesn't work, or is it > > >> best to build in some checking that will throw a request to first fill > > >> in the profile. > > > >> Thank you --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
