(ctx context.Context)
| 194 | } |
| 195 | |
| 196 | func EnsureCreatePermission(ctx context.Context) error { |
| 197 | claims := GetGrants(ctx) |
| 198 | if claims == nil || claims.Video == nil || !claims.Video.RoomCreate { |
| 199 | return ErrPermissionDenied |
| 200 | } |
| 201 | return nil |
| 202 | } |
| 203 | |
| 204 | func EnsureListPermission(ctx context.Context) error { |
| 205 | claims := GetGrants(ctx) |
no test coverage detected