Documentation
¶
Index ¶
- func CanAccessModeration(userID uint64) bool
- func CanModerateAnyCategory(userID uint64, categoryIDs []uint64) bool
- func HasOpenReports(userID uint64) bool
- func Invalidate()
- func InvalidateTopic(topicID uint64)
- func IsAdmin(userID uint64) bool
- func IsModerator(userID uint64) bool
- func PostStatusChanged(actorUserId uint64, snapshot PostSnapshot, blocked bool)
- func ReportStatusChanged(actorUserId uint64, snapshot ReportSnapshot, status string)
- func ScopeForUser(userID uint64) (bool, []uint64)
- func TopicStatusChanged(actorUserId uint64, topicId uint64, title string, blocked bool)
- type Grant
- type PostSnapshot
- type ReportSnapshot
- type Snapshot
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanAccessModeration ¶
func CanModerateAnyCategory ¶
func HasOpenReports ¶
func Invalidate ¶
func Invalidate()
func InvalidateTopic ¶
func InvalidateTopic(topicID uint64)
func IsModerator ¶
func PostStatusChanged ¶
func PostStatusChanged(actorUserId uint64, snapshot PostSnapshot, blocked bool)
func ReportStatusChanged ¶
func ReportStatusChanged(actorUserId uint64, snapshot ReportSnapshot, status string)
func ScopeForUser ¶
Types ¶
type PostSnapshot ¶
type ReportSnapshot ¶
Click to show internal directories.
Click to hide internal directories.