@@ 215-223 (lines=9) @@ | ||
212 | //non-Admin groups |
|
213 | if (is_array($permissionArray)) { |
|
214 | foreach ($permissionArray as $key => $cat_groupperm) { |
|
215 | if ($cat_groupperm > 0) { |
|
216 | $gperm = $gpermHandler->create(); |
|
217 | $gperm->setVar('gperm_groupid', $cat_groupperm); |
|
218 | $gperm->setVar('gperm_name', $permissionName); |
|
219 | $gperm->setVar('gperm_modid', $mid); |
|
220 | $gperm->setVar('gperm_itemid', $id); |
|
221 | $gpermHandler->insert($gperm); |
|
222 | unset($gperm); |
|
223 | } |
|
224 | } |
|
225 | } elseif ($permissionArray > 0) { |
|
226 | $gperm = $gpermHandler->create(); |
|
@@ 225-233 (lines=9) @@ | ||
222 | unset($gperm); |
|
223 | } |
|
224 | } |
|
225 | } elseif ($permissionArray > 0) { |
|
226 | $gperm = $gpermHandler->create(); |
|
227 | $gperm->setVar('gperm_groupid', $permissionArray); |
|
228 | $gperm->setVar('gperm_name', $permissionName); |
|
229 | $gperm->setVar('gperm_modid', $mid); |
|
230 | $gperm->setVar('gperm_itemid', $id); |
|
231 | $gpermHandler->insert($gperm); |
|
232 | unset($gperm); |
|
233 | } |
|
234 | } |
|
235 | ||
236 | //setPermissions for View items |