mirror of
https://github.com/juanfont/headscale.git
synced 2026-03-30 14:12:37 +02:00
cli: ensure tagged-devices is included in profile list (#2991)
This commit is contained in:
@@ -719,7 +719,13 @@ func (node Node) DebugString() string {
|
||||
return sb.String()
|
||||
}
|
||||
|
||||
func (nv NodeView) UserView() UserView {
|
||||
// Owner returns the owner for display purposes.
|
||||
// For tagged nodes, returns TaggedDevices. For user-owned nodes, returns the user.
|
||||
func (nv NodeView) Owner() UserView {
|
||||
if nv.IsTagged() {
|
||||
return TaggedDevices.View()
|
||||
}
|
||||
|
||||
return nv.User()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user