Skip to content

Commit

Permalink
UIU-3273: check if userId is present in withUserRoles HOC (#2816)
Browse files Browse the repository at this point in the history
Refs UIU-3273.
  • Loading branch information
aidynoJ authored and Terala-Priyanka committed Dec 13, 2024
1 parent 1487943 commit 23ca206
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@

* Add missed `circulation-storage.loans.item.get`, `inventory.items.item.get` permissions. Refs UIU-3291.

## [11.1.0] In progress
* `useUserTenantRoles` supplies `tenantId` in all its queries. Refs UIU-3279.
* Leverage API supported sorting of columns on pre-registrations records list. Refs UIU-3249.
* Add permission to access users-keycloak delete method. Refs UIU-3282.
* Fix issue with `Proxy borrower` field value. Refs UIU-3290.
* Check if userId is present in withUserRoles HOC. Refs UIU-3273.



## [11.0.7](https://github.com/folio-org/ui-users/tree/v11.0.7) (2024-11-30)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.6...v11.0.7)

Expand Down
2 changes: 1 addition & 1 deletion src/components/Wrappers/withUserRoles.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const withUserRoles = (WrappedComponent) => (props) => {

useEffect(() => {
// eslint-disable-next-line react/prop-types
if (props.stripes.hasInterface('users-keycloak') && !isAllRolesDataLoading) {
if (props.stripes.hasInterface('users-keycloak') && !isAllRolesDataLoading && !!userId) {
api.get(
'roles/users', { searchParams },
)
Expand Down

0 comments on commit 23ca206

Please sign in to comment.