Skip to content

Commit

Permalink
Merge branch 'master' into UIREQ-1198
Browse files Browse the repository at this point in the history
  • Loading branch information
artem-blazhko committed Nov 30, 2024
2 parents 2610098 + 61521e0 commit 431c4a9
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 14 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

* 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.
* Update permission after BE permission changes. Refs UIU-3288.

## [11.0.5](https://github.com/folio-org/ui-users/tree/v11.0.5) (2024-11-20)
[Full Changelog](https://github.com/folio-org/ui-users/compare/v11.0.3...v11.0.5)
Expand Down
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -605,8 +605,8 @@
"displayName": "Settings (Users): Can view patron blocks conditions",
"subPermissions": [
"settings.users.enabled",
"patron-block-conditions.collection.get",
"patron-block-conditions.item.get"
"patron-blocks.patron-block-conditions.collection.get",
"patron-blocks.patron-block-conditions.item.get"
],
"visible": false
},
Expand All @@ -615,7 +615,7 @@
"displayName": "Settings (Users): Can view and edit patron blocks conditions",
"subPermissions": [
"ui-users.settings.conditions.view",
"patron-block-conditions.item.put"
"patron-blocks.patron-block-conditions.item.put"
],
"visible": true
},
Expand Down Expand Up @@ -645,8 +645,8 @@
"displayName": "Settings (Users): Can view patron blocks limits",
"subPermissions": [
"ui-users.settings.conditions.view",
"patron-block-limits.collection.get",
"patron-block-limits.item.get",
"patron-blocks.patron-block-limits.collection.get",
"patron-blocks.patron-block-limits.item.get",
"usergroups.collection.get"
],
"visible": false
Expand All @@ -657,9 +657,9 @@
"subPermissions": [
"ui-users.settings.conditions.edit",
"ui-users.settings.limits.view",
"patron-block-limits.item.post",
"patron-block-limits.item.put",
"patron-block-limits.item.delete"
"patron-blocks.patron-block-limits.item.post",
"patron-blocks.patron-block-limits.item.put",
"patron-blocks.patron-block-limits.item.delete"
],
"visible": true
},
Expand Down Expand Up @@ -698,8 +698,8 @@
"ui-users.manual-charge.execute",
"ui-users.manual-pay.execute",
"ui-users.manual-waive.execute",
"accounts.check-transfer.post",
"accounts.check-refund.post",
"feesfines.accounts.check-transfer.post",
"feesfines.accounts.check-refund.post",
"feesfines.accounts.transfer.item.post",
"feesfines.accounts-bulk.transfer.item.post",
"feesfines.accounts.cancel.item.post",
Expand Down
2 changes: 1 addition & 1 deletion src/routes/LoanDetailContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ class LoanDetailContainer extends React.Component {
type: 'okapi',
records: 'automatedPatronBlocks',
path: 'automated-patron-blocks/:{id}?limit=2000',
permissionsRequired: 'automated-patron-blocks.collection.get',
permissionsRequired: 'patron-blocks.automated-patron-blocks.collection.get',
},
renew: {
fetch: false,
Expand Down
2 changes: 1 addition & 1 deletion src/routes/LoansListingContainer.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class LoansListingContainer extends React.Component {
type: 'okapi',
records: 'automatedPatronBlocks',
path: 'automated-patron-blocks/:{id}?limit=2000',
permissionsRequired: 'automated-patron-blocks.collection.get',
permissionsRequired: 'patron-blocks.automated-patron-blocks.collection.get',
},
requests: {
type: 'okapi',
Expand Down
4 changes: 2 additions & 2 deletions src/views/UserDetail/UserDetail.js
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ class UserDetail extends React.Component {
.GET().catch(() => [])
: Promise.resolve([]);
const automatedPatronBlocksResolver = stripes.hasInterface('automated-patron-blocks')
&& stripes.hasPerm('automated-patron-blocks.collection.get')
&& stripes.hasPerm('patron-blocks.automated-patron-blocks.collection.get')
? hasAutomatedPatronBlocks
.GET().catch(() => [])
: Promise.resolve([]);
Expand Down Expand Up @@ -645,7 +645,7 @@ class UserDetail extends React.Component {
const servicePoints = this.props.getUserServicePoints();
const preferredServicePoint = this.props.getPreferredServicePoint();
const hasPatronBlocks = !!patronBlocks.length;
const hasPatronBlocksPermissions = stripes.hasPerm('automated-patron-blocks.collection.get') || stripes.hasPerm('manualblocks.collection.get');
const hasPatronBlocksPermissions = stripes.hasPerm('patron-blocks.automated-patron-blocks.collection.get') || stripes.hasPerm('manualblocks.collection.get');
const patronGroup = this.getPatronGroup(user);
const requestPreferences = get(resources, 'requestPreferences.records.[0].requestPreferences[0]', {});
const allServicePoints = get(resources, 'servicePoints.records', [{}]);
Expand Down

0 comments on commit 431c4a9

Please sign in to comment.