Skip to content

Commit c5e52ee

Browse files
committed
Increases maxPermissionsPerRole
1 parent dbbc91a commit c5e52ee

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pallets/gated-marketplace/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Create marketplaces that require previous authorization before placing sell and
3636
- [Polkadot-js api (javascript library)](#polkadot-js-api-javascript-library)
3737
- [Create a marketplace](#create-a-marketplace-1)
3838
- [Get a marketplace](#get-a-marketplace-1)
39-
- [Get what permissions does an account have on a marketplace](#get-what-permissions-does-an-account-have-on-a-marketplace)
39+
- [Get what roles does an account have on a marketplace](#get-what-roles-does-an-account-have-on-a-marketplace-1)
4040
- [Get all the accounts that have a certain permission on a marketplace](#get-all-the-accounts-that-have-a-certain-permission-on-a-marketplace)
4141
- [Apply to a marketplace (without custodian)](#apply-to-a-marketplace-without-custodian-1)
4242
- [Apply to a marketplace (with custodian)](#apply-to-a-marketplace-with-custodian-1)
@@ -434,7 +434,7 @@ key marketplace_id: [
434434
marketplace: { label: 'my marketplace' }
435435
```
436436
437-
#### Get what permissions does an account have on a marketplace
437+
#### Get what roles does an account have on a marketplace
438438
```js
439439
// account_id, pallet_id, scope_id
440440
const rolesByUser = await api.query.rbac.rolesByUser(alice.address,20, "0xace33a53e2c1a5c7fa2f920338136d0ddc3aba23eacaf708e3871bc856a34b95");

pallets/gated-marketplace/src/functions.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ impl<T: Config> Pallet<T> {
2828
let _appraiser_role_id = T::Rbac::create_and_set_roles(pallet_id, [MarketplaceRole::Appraiser.to_vec()].to_vec())?;
2929
// redemption specialist role and permissions
3030
let _redemption_role_id = T::Rbac::create_and_set_roles(pallet_id, [MarketplaceRole::RedemptionSpecialist.to_vec()].to_vec())?;
31-
3231
Ok(())
3332
}
3433

runtime/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ parameter_types! {
633633
pub const MaxRolesPerPallet: u32 = 20;
634634
pub const RoleMaxLen: u32 = 30;
635635
pub const PermissionMaxLen: u32 = 30;
636-
pub const MaxPermissionsPerRole: u32 = 10;
636+
pub const MaxPermissionsPerRole: u32 = 12;
637637
pub const MaxRolesPerUser: u32 = 10;
638638
pub const MaxUsersPerRole: u32 = 10;
639639
}

0 commit comments

Comments
 (0)