mirror of https://github.com/MISP/MISP
Merge pull request #5129 from JakubOnderka/array-copy-remove
chg: [users] Remove unused method UsersController::arrayCopypull/5132/head
commit
6b42f089cd
|
@ -504,7 +504,6 @@ class ACLComponent extends Component
|
|||
'admin_index' => array('perm_admin'),
|
||||
'admin_quickEmail' => array('perm_admin'),
|
||||
'admin_view' => array('perm_admin'),
|
||||
'arrayCopy' => array(),
|
||||
'attributehistogram' => array('*'),
|
||||
'change_pw' => array('*'),
|
||||
'checkAndCorrectPgps' => array(),
|
||||
|
|
|
@ -1304,22 +1304,6 @@ class UsersController extends AppController
|
|||
return $this->response;
|
||||
}
|
||||
|
||||
// Used for fields_before and fields for audit
|
||||
public function arrayCopy(array $array)
|
||||
{
|
||||
$result = array();
|
||||
foreach ($array as $key => $val) {
|
||||
if (is_array($val)) {
|
||||
$result[$key] = arrayCopy($val);
|
||||
} elseif (is_object($val)) {
|
||||
$result[$key] = clone $val;
|
||||
} else {
|
||||
$result[$key] = $val;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
public function checkAndCorrectPgps()
|
||||
{
|
||||
if (!self::_isAdmin()) {
|
||||
|
|
Loading…
Reference in New Issue