Add support for tracking more SFTP specific events
This commit is contained in:
parent
2e01891074
commit
33ab762f5a
5 changed files with 38 additions and 11 deletions
|
@ -92,7 +92,7 @@ class ActivityLogTransformer extends BaseClientTransformer
|
|||
$str = trans('activity.' . str_replace(':', '.', $model->event));
|
||||
preg_match_all('/:(?<key>[\w.-]+\w)(?:[^\w:]?|$)/', $str, $matches);
|
||||
|
||||
$exclude = array_merge($matches['key'], ['ip', 'useragent']);
|
||||
$exclude = array_merge($matches['key'], ['ip', 'useragent', 'using_sftp']);
|
||||
foreach ($model->properties->keys() as $key) {
|
||||
if (!in_array($key, $exclude, true)) {
|
||||
return true;
|
||||
|
|
Reference in a new issue