MCPcopy 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
127func CanWriteContent(permission int32) bool {
128 return (permission>>3)&1 == 1
129}
130
131func (u *User) CanWriteContent() bool {
132 return CanWriteContent(u.Permission)

Callers 1

CanWriteContentMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected