⚠️ Deprecation Notice
ModuleKit was developed by Rhinestone and is no longer actively supported. If you're building modules and need assistance, reach out to Rhinestone at gm@rhinestone.dev
title: "isPermissionEnabled"
Check if a permission/session is enabled for a specific account. You can also query this by the entire session struct using isSessionEnabled.
Usage
bool isEnabled = instance.isPermissionEnabled(permissionId);Parameters
instance
- Type:
AccountInstance
The instance of the account used for testing.
permissionId
- Type:
PermissionId | bytes32
The permission id to check if it is enabled.
Returns
isEnabled
- Type:
bool
Returns true if the permission is enabled, false otherwise.