diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getOrphanedRequirementUidList.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getOrphanedRequirementUidList.xml index 6e5743e83c404d929900d29e4f0b33ed68d0770e..abab89aab70d4dbab6569165948ac3ec7f31cea8 100644 --- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getOrphanedRequirementUidList.xml +++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getOrphanedRequirementUidList.xml @@ -55,9 +55,9 @@ <key> <string>_body</string> </key> <value> <string>result = []\n \n -for r in context.contentValues(filter={\'portal_type\': \'Requirement\'}):\n +for r in context.contentValues(filter={\'portal_type\': \'Requirement\'}, checked_permission=\'View\'):\n if not r.getRequirementRelatedValueList():\n - if not r.contentValues(filter={\'portal_type\': \'Requirement\'}):\n + if not r.contentValues(filter={\'portal_type\': \'Requirement\'}, checked_permission=\'View\'):\n result.append(r.getUid())\n result.extend(r.RequirementDocument_getOrphanedRequirementUidList())\n \n diff --git a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getProjectCoverageList.xml b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getProjectCoverageList.xml index 7ab768376baf3123dc14c03db184d33c393a64c2..18bbb7cd36c9f8c5661fdae71abefbbf3ae571a9 100644 --- a/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getProjectCoverageList.xml +++ b/bt5/erp5_project/SkinTemplateItem/portal_skins/erp5_project/RequirementDocument_getProjectCoverageList.xml @@ -55,9 +55,9 @@ <key> <string>_body</string> </key> <value> <string>result = []\n \n -for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),)):\n +for r in context.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n if not r.getRequirementRelatedValueList():\n - if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),)):\n + if not r.contentValues(portal_type= "Requirement", sort_on = ((\'int_index\',\'ascending\', \'int\'),), checked_permission=\'View\'):\n result.append({\'requirement_reference\': r.Requirement_getDefaultReference(),\n \'requirement_title\': r.getTitle(),\n \'project_reference\': \'Not covered\',\n diff --git a/bt5/erp5_project/bt/change_log b/bt5/erp5_project/bt/change_log index 6d5daebd1047f81937c71d82093bdf262d94bd35..38616b2d076385888cfe5ccda9d35b8f71b84edd 100644 --- a/bt5/erp5_project/bt/change_log +++ b/bt5/erp5_project/bt/change_log @@ -1,3 +1,7 @@ +2008-09-27 yusei +* Added checked_permission argument to contentValues method in +RequirementDocument_getOrphanedRequirementUidList and RequirementDocument_getProjectCoverageList. + 2008-09-24 yusei * Fixed a bug in Requirement_generateRequirements. diff --git a/bt5/erp5_project/bt/revision b/bt5/erp5_project/bt/revision index a9ba1259cffcec623e16c1da4d1a05e47aad1015..6f4cec90d97e3a1765e48b3211c2c1ea1c46bb1d 100644 --- a/bt5/erp5_project/bt/revision +++ b/bt5/erp5_project/bt/revision @@ -1 +1 @@ -607 \ No newline at end of file +608 \ No newline at end of file