Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
81
func
isRoot() bool {
82
currentUser, err := user.Current()
83
if
err != nil {
84
return
false
85
}
86
return
currentUser.Uid ==
"0"
87
}
Callers
8
updateBindInfo
Function · 0.85
user-info.go
File · 0.85
reset.go
File · 0.85
update.go
File · 0.85
restore.go
File · 0.85
app.go
File · 0.85
user.go
File · 0.85
version.go
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected