Results 1 to 2 of 2

Thread: What Team or Role does the currrent user belong in

  1. #1
    dkinzer's Avatar
    dkinzer is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    67

    Default What Team or Role does the currrent user belong in

    I'm trying to set up a hook based on current user role or team and I'm having trouble figuring out where to look for this info:

    I've check attributes in $_GLOBALS['current_user']

    with no luck.

    The closest I can come up with is $_GLOBALS['current_user']['default_team_name']

    is that all that's available?


    Thanks, D.
    Last edited by dkinzer; 2011-10-19 at 09:08 PM.

  2. #2
    dkinzer's Avatar
    dkinzer is offline Sugar Community Member
    Join Date
    Sep 2011
    Posts
    67

    Default Re: What Team or Role does the currrent user belong in

    OK, so as far as I can tell the $current_user object does not hold that information.

    But it would be a simple matter to query the database to get this info to use in the workflow hook.

    It would be nice though if Sugar Workflows allows conditions based on the Current User object, not just the record.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Role Admin vs Team
    By ac1982 in forum Help
    Replies: 1
    Last Post: 2010-12-06, 09:59 AM
  2. Role and Team
    By huuhien in forum Help
    Replies: 5
    Last Post: 2010-06-29, 08:05 PM
  3. Linking Team,Role and User
    By susanjohnyba in forum Sugar Developer Website
    Replies: 0
    Last Post: 2009-06-13, 03:21 AM
  4. Team & Role
    By 4one in forum General Discussion
    Replies: 2
    Last Post: 2009-03-06, 07:26 AM
  5. Team/role hierarchy
    By pingis in forum General Discussion
    Replies: 3
    Last Post: 2005-11-05, 10:22 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •