Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OpenListTeam/OpenList
/ CanWriteContent
Function
CanWriteContent
internal/model/user.go:127–129 ·
view source on GitHub ↗
(permission int32)
Source
from the content-addressed store, hash-verified
125
}
126
127
func
CanWriteContent(permission int32) bool {
128
return
(permission>>3)&1 == 1
129
}
130
131
func
(u *User) CanWriteContent() bool {
132
return
CanWriteContent(u.Permission)
Callers
1
CanWriteContent
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected