Cyb3r
Well-known member
I'm overriding Core function "helperRichUserName" but it seems not all attributes are provided in the $user array, I tried to check "is_staff" and usergroup ids but didn't work, so I tried to create a model for the user by user id:
	
	
	
		
It worked but the queries has doubled, so I was wondering if there's a function that extract only usergroup ids and check it by user_id.
				
			
		PHP:
	
	$full_user = XenForo_Model::create('XenForo_Model_User')->getUserById($user['user_id']);
	It worked but the queries has doubled, so I was wondering if there's a function that extract only usergroup ids and check it by user_id.