@@ 343-354 (lines=12) @@ | ||
340 | $output = executeQuery('module.deleteModuleGrants', $args); |
|
341 | if(!$output->toBool()) return $output; |
|
342 | // Permissions stored in the DB |
|
343 | foreach($grant as $grant_name => $group_srls) |
|
344 | { |
|
345 | foreach($group_srls as $val) |
|
346 | { |
|
347 | $args = new stdClass(); |
|
348 | $args->module_srl = $module_srl; |
|
349 | $args->name = $grant_name; |
|
350 | $args->group_srl = $val; |
|
351 | $output = executeQuery('module.insertModuleGrant', $args); |
|
352 | if(!$output->toBool()) return $output; |
|
353 | } |
|
354 | } |
|
355 | $this->setMessage('success_registed'); |
|
356 | } |
|
357 | ||
@@ 622-633 (lines=12) @@ | ||
619 | $output = executeQuery('module.deleteModuleGrants', $args); |
|
620 | if(!$output->toBool()) continue; |
|
621 | // Permissions stored in the DB |
|
622 | foreach($grant as $grant_name => $group_srls) |
|
623 | { |
|
624 | foreach($group_srls as $val) |
|
625 | { |
|
626 | $args = new stdClass(); |
|
627 | $args->module_srl = $module_srl; |
|
628 | $args->name = $grant_name; |
|
629 | $args->group_srl = $val; |
|
630 | $output = executeQuery('module.insertModuleGrant', $args); |
|
631 | if(!$output->toBool()) return $output; |
|
632 | } |
|
633 | } |
|
634 | } |
|
635 | $this->setMessage('success_registed'); |
|
636 | if(!in_array(Context::getRequestMethod(),array('XMLRPC','JSON'))) |