• Resolved keywordadtd

    (@keywordadtd)


    hi,
    I founded that user_role not set correctly in ticket reply on this path:
    awesome-support->themes->default->partials->ticket-reply.php Line:23

    because in someway default $user_roles (array) not indexed from 0 !
    for example:

    ["roles"]=>
      array(2) {
        [1]=>
        string(13) "administrator"
        [2]=>
        string(8) "um_admin"
    }

    so your code: $user_role = $user->roles[0]; return empty.

    i think it’s better to use this code to get first user role:
    $user_role = reset( $user->roles );

    or any other way
    Thanks! ??

    • This topic was modified 3 years, 5 months ago by keywordadtd.
Viewing 1 replies (of 1 total)
  • Plugin Author yeisonbp

    (@yeisonbp)

    Hi @keywordadtd,

    Thanks for your contribution! I send this report to the developers so that they investigate, check and test your roles code change for ticket replies and so it might be implemented in a future update.

    Best Regards!

Viewing 1 replies (of 1 total)
  • The topic ‘User-Role in ticket reply Not working correctly’ is closed to new replies.