@@ 73-81 (lines=9) @@ | ||
70 | $groups2_add = array_diff($groups, array_values($groups2_exists)); |
|
71 | ||
72 | // delete alumni_view |
|
73 | if (0 != count($groups_delete)) { |
|
74 | $criteria = $criteria = new CriteriaCompo(); |
|
75 | $criteria->add(new Criteria('gperm_itemid', $cid)); |
|
76 | $criteria->add(new Criteria('gperm_modid', $module_id)); |
|
77 | $criteria->add(new Criteria('gperm_name', 'alumni_view', '=')); |
|
78 | $criteria->add(new Criteria('gperm_groupid', '(' . implode(', ', $groups_delete) . ')', 'IN')); |
|
79 | if (parent::deleteAll($criteria)) { |
|
80 | } |
|
81 | } |
|
82 | ||
83 | // delete alumni_view |
|
84 | if (0 != count($groups1_delete)) { |
|
@@ 84-92 (lines=9) @@ | ||
81 | } |
|
82 | ||
83 | // delete alumni_view |
|
84 | if (0 != count($groups1_delete)) { |
|
85 | $criteria = $criteria = new CriteriaCompo(); |
|
86 | $criteria->add(new Criteria('gperm_itemid', $cid)); |
|
87 | $criteria->add(new Criteria('gperm_modid', $module_id)); |
|
88 | $criteria->add(new Criteria('gperm_name', 'alumni_submit', '=')); |
|
89 | $criteria->add(new Criteria('gperm_groupid', '(' . implode(', ', $groups1_delete) . ')', 'IN')); |
|
90 | if (parent::deleteAll($criteria)) { |
|
91 | } |
|
92 | } |
|
93 | ||
94 | // delete alumni_view |
|
95 | if (0 != count($groups2_delete)) { |
|
@@ 95-103 (lines=9) @@ | ||
92 | } |
|
93 | ||
94 | // delete alumni_view |
|
95 | if (0 != count($groups2_delete)) { |
|
96 | $criteria = $criteria = new CriteriaCompo(); |
|
97 | $criteria->add(new Criteria('gperm_itemid', $cid)); |
|
98 | $criteria->add(new Criteria('gperm_modid', $module_id)); |
|
99 | $criteria->add(new Criteria('gperm_name', 'alumni_premium', '=')); |
|
100 | $criteria->add(new Criteria('gperm_groupid', '(' . implode(', ', $groups2_delete) . ')', 'IN')); |
|
101 | if (parent::deleteAll($criteria)) { |
|
102 | } |
|
103 | } |
|
104 | ||
105 | // Add alumni_view |
|
106 | if (0 != count($groups_add)) { |