@@ 139-142 (lines=4) @@ | ||
136 | $cats_readable = []; |
|
137 | $cats_showlist = []; |
|
138 | foreach ($catObjs as $cat_id => $catObj) { |
|
139 | if ($grouppermHandler->checkRight('newsletter_read_cat', $cat_id, $groups, $helper->getModule()->mid())) { |
|
140 | $cats_readable[$cat_id]['cat_id'] = $cat_id; |
|
141 | $cats_readable[$cat_id]['cat_name'] = $catObj->getVar('cat_name'); |
|
142 | } |
|
143 | if ($grouppermHandler->checkRight('newsletter_list_cat', $cat_id, $groups, $helper->getModule()->mid())) { |
|
144 | $cats_showlist[$cat_id]['cat_id'] = $cat_id; |
|
145 | $cats_showlist[$cat_id]['cat_name'] = $catObj->getVar('cat_name'); |
|
@@ 143-146 (lines=4) @@ | ||
140 | $cats_readable[$cat_id]['cat_id'] = $cat_id; |
|
141 | $cats_readable[$cat_id]['cat_name'] = $catObj->getVar('cat_name'); |
|
142 | } |
|
143 | if ($grouppermHandler->checkRight('newsletter_list_cat', $cat_id, $groups, $helper->getModule()->mid())) { |
|
144 | $cats_showlist[$cat_id]['cat_id'] = $cat_id; |
|
145 | $cats_showlist[$cat_id]['cat_name'] = $catObj->getVar('cat_name'); |
|
146 | } |
|
147 | } |
|
148 | $perm_read_cat = (count($cats_readable) > 0); |
|
149 | $perm_list_cat = (count($cats_showlist) > 0); |