mirror of
https://github.com/netbirdio/netbird.git
synced 2026-05-01 14:46:41 +00:00
refactor jwt groups extractor
Signed-off-by: bcmmbaga <bethuelmbaga12@gmail.com>
This commit is contained in:
@@ -363,6 +363,8 @@ func (am *DefaultAccountManager) inviteNewUser(ctx context.Context, accountID, u
|
||||
|
||||
// GetUserByID looks up a user by provided user id.
|
||||
func (am *DefaultAccountManager) GetUserByID(ctx context.Context, id string) (*User, error) {
|
||||
unlock := am.Store.AcquireReadLockByUID(ctx, id)
|
||||
defer unlock()
|
||||
return am.Store.GetUserByUserID(ctx, id)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user