mirror of
https://github.com/tailscale/tailscale.git
synced 2025-08-11 21:27:31 +00:00
ipn/ipnlocal,ipnserver: rename {,Set}CurrentUser to {,Set}CurrentUserID
Address comments from https://github.com/tailscale/tailscale/pull/6506#discussion_r1032454064 Signed-off-by: Maisem Ali <maisem@tailscale.com>
This commit is contained in:
@@ -40,15 +40,15 @@ type profileManager struct {
|
||||
isNewProfile bool
|
||||
}
|
||||
|
||||
// CurrentUser returns the current user ID. It is only non-empty on
|
||||
// CurrentUserID returns the current user ID. It is only non-empty on
|
||||
// Windows where we have a multi-user system.
|
||||
func (pm *profileManager) CurrentUser() string {
|
||||
func (pm *profileManager) CurrentUserID() string {
|
||||
return pm.currentUserID
|
||||
}
|
||||
|
||||
// SetCurrentUser sets the current user ID. The uid is only non-empty
|
||||
// SetCurrentUserID sets the current user ID. The uid is only non-empty
|
||||
// on Windows where we have a multi-user system.
|
||||
func (pm *profileManager) SetCurrentUser(uid string) error {
|
||||
func (pm *profileManager) SetCurrentUserID(uid string) error {
|
||||
if pm.currentUserID == uid {
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user