This commit is contained in:
@@ -234,14 +234,13 @@ namespace VEPROMS.CSLA.Library
|
||||
bool isStepPart = (o is PartInfo && (o as PartInfo).PartType == E_FromType.Step);
|
||||
if (isStepPart)
|
||||
{
|
||||
|
||||
// get parent section and see if it has the Editable flag set. Only skip
|
||||
// if this flag is set to "N".
|
||||
ItemInfo sectInfo = (ItemInfo)(o as PartInfo).ActiveParent;
|
||||
if (sectInfo != null)
|
||||
{
|
||||
SectionConfig sc = sectInfo.MyConfig as SectionConfig;
|
||||
if (sc != null && sc.SubSection_Edit == "N") skipIt = true;
|
||||
}
|
||||
bool hasMetaSubs = sectInfo != null && sectInfo.Sections != null && sectInfo.Sections.Count > 0;
|
||||
bool editSteps = !hasMetaSubs || (sectInfo.MyConfig is SectionConfig && (sectInfo.MyConfig as SectionConfig).SubSection_Edit == "Y");
|
||||
if (!editSteps) skipIt = true;
|
||||
}
|
||||
if (!skipIt)
|
||||
{
|
||||
|
Reference in New Issue
Block a user