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:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user