isSessionEnabled
Check if a session is enabled. You can also check this only by the permissionId using isPermissionEnabled.
Usage
bool isEnabled = instance.isSessionEnabled(session);Parameters
instance
- Type:
AccountInstance
The instance of the account used for testing.
session
- Type:
Session
The session to check if it is enabled.
Returns
isEnabled
- Type:
bool
Returns true if the session is enabled and false otherwise.