This commit is contained in:
2013-02-26 14:37:15 +00:00
parent d9a79bfbda
commit 442198860c
3 changed files with 43 additions and 26 deletions

View File

@@ -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)
{