Handle room configuration that's set in the grant itself (#3120)
* Handle room configuration that's set in the grant itself * ensure refresh token contains updates * deps * dep --------- Co-authored-by: Paul Wells <paulwe@gmail.com>
This commit is contained in:
@@ -179,16 +179,6 @@ func EnsureCreatePermission(ctx context.Context) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func GetRoomConfiguration(ctx context.Context) string {
|
||||
|
||||
claims := GetGrants(ctx)
|
||||
|
||||
if claims == nil || claims.Video == nil {
|
||||
return ""
|
||||
}
|
||||
return claims.Video.RoomConfiguration
|
||||
}
|
||||
|
||||
func EnsureListPermission(ctx context.Context) error {
|
||||
claims := GetGrants(ctx)
|
||||
if claims == nil || claims.Video == nil || !claims.Video.RoomList {
|
||||
|
||||
Reference in New Issue
Block a user