From 1b5d64888335c622acf832df22939055f2930e10 Mon Sep 17 00:00:00 2001 From: David Zhao Date: Mon, 14 Jul 2025 01:10:38 -0700 Subject: [PATCH] allowing self metadata updates by default previously, we did not allow updates to its own metadata by default. this is a bit too restrictive, as the primary users of metadata/attributes are clients and agents. vs server-api with admin access. --- auth/grants.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auth/grants.go b/auth/grants.go index 410d10d02..07e83f5c6 100644 --- a/auth/grants.go +++ b/auth/grants.go @@ -244,7 +244,7 @@ type VideoGrant struct { // TrackSource types that a participant may publish. // When set, it supersedes CanPublish. Only sources explicitly set here can be published CanPublishSources []string `json:"canPublishSources,omitempty"` // keys keep track of each source - // by default, a participant is not allowed to update its own metadata + // by default, a participant is allowed to update its own metadata CanUpdateOwnMetadata *bool `json:"canUpdateOwnMetadata,omitempty"` // actions on ingresses @@ -343,7 +343,7 @@ func (v *VideoGrant) GetCanSubscribe() bool { func (v *VideoGrant) GetCanUpdateOwnMetadata() bool { if v.CanUpdateOwnMetadata == nil { - return false + return true } return *v.CanUpdateOwnMetadata }