The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

'Owner' hash empty when reseller modifies account

Discussion in 'cPanel Developers' started by UADerek, Aug 6, 2012.

  1. UADerek

    UADerek Member

    Joined:
    Jul 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Is there any way to get the 'owner' element to pass into the postmodifyacct hook when a reseller is modifying one of its accounts?
    For some reason the 'owner' element is only being passed in with root.
    I need a way to get the reseller's account name when modifying the account.

    If this isn't possible, would it be possible to somehow ping cPanel (from within the postmodifyacct hook) to get all of the account information (owner, domain, etc.)?


    Thanks!
     
  2. UADerek

    UADerek Member

    Joined:
    Jul 31, 2012
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Is it possible that this behavior is a bug? The reason I suggest that is because according to this document, the 'owner' variable is showed to be passed into the 'data' hash in both pre and post stages. I didn't see a mention of when the owner variable is conditionally passed (when root modifies an account vs a reseller modifying an account), so I assumed it is supposed to be passed in always.

    And one more point that led me to think it's a bug: I tested my postwwwacct script, and owner is passed into the script even when creating an account as reseller.

    Thanks!
     
Loading...
Similar Threads - 'Owner' hash empty
  1. gn0s1s
    Replies:
    6
    Views:
    405

Share This Page