Layer.nodeEnabled

Function/Meaning
Whether the layer node can be operated
Type
Layer Class Properties
Explanation

Indicates whether the layer node can be operated.
It is false if you are inoperable or if some of the parent layers are inoperable.
Otherwise it will be true.