Good morning all !
I'd to know how can I get the id of the current user connected to mantis in a report issue. I know that the variable name is $f_handler_id.
I need this to create a custom function in my mantis when I'm in the report issue.
Huge thanks !
Kevin
How to get the current user connected ID in a report issue
Moderators: Developer, Contributor
-
- Posts: 8
- Joined: 13 Feb 2013, 08:17
-
- Posts: 8
- Joined: 13 Feb 2013, 08:17
Re: How to get the current user connected ID in a report iss
Massive thanks Atrol !
It works fine!
It works fine!
Re: How to get the current user connected ID in a report iss
Hello all,
I'd like to know how can I get the Group ID of one user? (Is he Reporter, viewer,...)
Which function ?
Thanks
I'd like to know how can I get the Group ID of one user? (Is he Reporter, viewer,...)
Which function ?
Thanks
Re: How to get the current user connected ID in a report iss
Code: Select all
$t_access_level = user_get_field( $t_user_id, 'access_level' );
if ( $t_access_level == REPORTER ) ...
Re: How to get the current user connected ID in a report iss
Thank you for your reply.
however, I've got the following error
For your information my code already included
however, I've got the following error
Code: Select all
Notice: Undefined index: user_get_field() for NO_USER in ...\core\error_api.php on line 375
APPLICATION WARNING #user_get_field() for NO_USER:
Code: Select all
require_once( 'current_user_api.php' );