readOnlyMessage property

String get readOnlyMessage

If the portal is currently in read-only mode, this is an explanatory message that can be displayed to the user.

This will be empty if PortalInfo.isReadOnly is false.