Kaynağa Gözat

Log sharing and unsharing with a room in the auditing app

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tags/v14.0.0beta3
Daniel Calviño Sánchez 6 yıl önce
ebeveyn
işleme
0fab46c817
1 değiştirilmiş dosya ile 25 ekleme ve 0 silme
  1. 25
    0
      apps/admin_audit/lib/Actions/Sharing.php

+ 25
- 0
apps/admin_audit/lib/Actions/Sharing.php Dosyayı Görüntüle

@@ -78,6 +78,19 @@ class Sharing extends Action {
'id',
]
);
} elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
$this->log(
'The %s "%s" with ID "%s" has been shared to the room "%s" with permissions "%s" (Share ID: %s)',
$params,
[
'itemType',
'itemTarget',
'itemSource',
'shareWith',
'permissions',
'id',
]
);
}
}

@@ -122,6 +135,18 @@ class Sharing extends Action {
'id',
]
);
} elseif($params['shareType'] === Share::SHARE_TYPE_ROOM) {
$this->log(
'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)',
$params,
[
'itemType',
'fileTarget',
'itemSource',
'shareWith',
'id',
]
);
}
}


Loading…
İptal
Kaydet