mergeRoles
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | WRITABLE |
roleB | READONLY_SIGNER |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | READONLY_SIGNER |
roleB | WRITABLE |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | AccountRole |
roleB | WRITABLE_SIGNER |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | WRITABLE_SIGNER |
roleB | AccountRole |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):READONLY_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | AccountRole |
roleB | READONLY_SIGNER |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):READONLY_SIGNER
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | READONLY_SIGNER |
roleB | AccountRole |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | AccountRole |
roleB | WRITABLE |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):WRITABLE
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | WRITABLE |
roleB | AccountRole |
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):READONLY
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Returns
Example
Call Signature
mergeRoles(
roleA
,roleB
):AccountRole
Given two AccountRoles, will return the AccountRole that grants the highest privileges of both.
Parameters
Parameter | Type |
---|---|
roleA | AccountRole |
roleB | AccountRole |