private void applySecurity() { if (user.CanUserModify(currentNode)) { return; } /* * * if (user.IsInRole(SFGlobal.AdminstratorRoleName) || user.IsInRole(SFGlobal.PublisherRoleName) || user.IsInRole(SFGlobal.EditorRoleName)) * { * return; * } */ else { if (action == 0) { return; } Response.Write("not authorized to add or modify nodes"); Response.End(); } }