Skip to content

Commit 1b5d648

Browse files
committed
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.
1 parent a8834c0 commit 1b5d648

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

auth/grants.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ type VideoGrant struct {
244244
// TrackSource types that a participant may publish.
245245
// When set, it supersedes CanPublish. Only sources explicitly set here can be published
246246
CanPublishSources []string `json:"canPublishSources,omitempty"` // keys keep track of each source
247-
// by default, a participant is not allowed to update its own metadata
247+
// by default, a participant is allowed to update its own metadata
248248
CanUpdateOwnMetadata *bool `json:"canUpdateOwnMetadata,omitempty"`
249249

250250
// actions on ingresses
@@ -343,7 +343,7 @@ func (v *VideoGrant) GetCanSubscribe() bool {
343343

344344
func (v *VideoGrant) GetCanUpdateOwnMetadata() bool {
345345
if v.CanUpdateOwnMetadata == nil {
346-
return false
346+
return true
347347
}
348348
return *v.CanUpdateOwnMetadata
349349
}

0 commit comments

Comments
 (0)