MCPcopy Create free account
hub / github.com/daodst/chat / HasPowerLevel

Method HasPowerLevel

internal/pushrules/evaluate.go:30–30  ·  view source on GitHub ↗

HasPowerLevel returns whether the user has at least the given power in the room of the current event.

(userID, levelKey string)

Source from the content-addressed store, hash-verified

28 // HasPowerLevel returns whether the user has at least the given
29 // power in the room of the current event.
30 HasPowerLevel(userID, levelKey string) (bool, error)
31}
32
33// A kindAndRules is just here to simplify iteration of the (ordered)

Callers 1

conditionMatchesFunction · 0.65

Implementers 2

ruleSetEvalContextuserapi/consumers/syncapi_streamevent.
fakeEvaluationContextinternal/pushrules/evaluate_test.go

Calls

no outgoing calls

Tested by

no test coverage detected