Compare commits

...

2 Commits

Author SHA1 Message Date
Paul Weidner d16bc107ad Use strict identical operator when checking geometry format #756 2023-11-30 14:02:13 -05:00
Paul Weidner 56b3b4de95 Correct alter hook to add password grant to static scopes #755 2023-11-30 13:55:52 -05:00
3 changed files with 7 additions and 2 deletions

View File

@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- [Correct alter hook to add password grant to static scopes #755](https://github.com/farmOS/farmOS/pull/755)
- [Use strict identical operator when checking geometry format #756](https://github.com/farmOS/farmOS/pull/756)
## [3.0.0-beta3] 2023-11-27
### Fixed

View File

@ -104,7 +104,7 @@ class ContentEntityGeometryNormalizer implements NormalizerInterface, Serializer
// Check that the data is a content entity.
// Only formats that are prefixed with "geometry_" are supported.
// This makes it easier for other modules to provide geometry encoders.
return $data instanceof ContentEntityInterface && strpos($format, 'geometry_') == 0;
return $data instanceof ContentEntityInterface && strpos($format, 'geometry_') === 0;
}
/**

View File

@ -18,7 +18,7 @@ function farm_role_roles_oauth2_scope_info_alter(array &$scopes) {
'farm_viewer',
];
foreach ($target_scopes as $scope_id) {
if (isset($target_scopes[$scope_id])) {
if (isset($scopes[$scope_id])) {
$scopes[$scope_id]['grant_types']['password'] = [
'status' => TRUE,
];