Show group membership(s) in user-summary and user-list
This commit is contained in:
@@ -109,6 +109,18 @@ class UserHelper extends Base
|
||||
return $this->role->getRoleName($role ?: $this->userSession->getRole());
|
||||
}
|
||||
|
||||
/**
|
||||
* Get group names(as a comma-separated list) for a given user
|
||||
*
|
||||
* @access public
|
||||
* @param integer $user_id User id
|
||||
* @return string
|
||||
*/
|
||||
public function getGroupNames($user_id)
|
||||
{
|
||||
return implode(', ', array_column($this->groupMemberModel->getGroups($user_id), 'name'));
|
||||
}
|
||||
|
||||
/**
|
||||
* Check application access
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user