Filter out privileged events for non-admin users, refactor IsPrivileged logic, and improve event handling with additional checks and utilities.

This commit is contained in:
2025-09-07 20:51:32 +01:00
parent 135508c390
commit f102c205f8
3 changed files with 48 additions and 5 deletions

View File

@@ -142,7 +142,7 @@ func (k *S) Unmarshal(b []byte) (r []byte, err error) {
// be privacy protected).
func (k *S) IsPrivileged() (priv bool) {
for i := range k.K {
if k.K[i].IsPrivileged() {
if IsPrivileged(k.K[i].K) {
return true
}
}