MCPcopy Create free account
hub / github.com/1Panel-dev/1Panel / isRoot

Function isRoot

core/cmd/server/cmd/root.go:81–87  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func isRoot() bool {
82 currentUser, err := user.Current()
83 if err != nil {
84 return false
85 }
86 return currentUser.Uid == "0"
87}

Callers 8

updateBindInfoFunction · 0.85
user-info.goFile · 0.85
reset.goFile · 0.85
update.goFile · 0.85
restore.goFile · 0.85
app.goFile · 0.85
user.goFile · 0.85
version.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected