LPS-40995 Require UPDATE permission when viewing draft
LPS-40995 Fix compile errors
LPS-40995 Source formatting
LPS-40995 Move before view dynamic inheritance check