@@ -38,324 +38,324 @@ |
||
38 | 38 | * @package OCA\AdminAudit\Actions |
39 | 39 | */ |
40 | 40 | class Sharing extends Action { |
41 | - /** |
|
42 | - * Logs sharing of data |
|
43 | - * |
|
44 | - * @param array $params |
|
45 | - */ |
|
46 | - public function shared(array $params): void { |
|
47 | - if ($params['shareType'] === IShare::TYPE_LINK) { |
|
48 | - $this->log( |
|
49 | - 'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)', |
|
50 | - $params, |
|
51 | - [ |
|
52 | - 'itemType', |
|
53 | - 'itemTarget', |
|
54 | - 'itemSource', |
|
55 | - 'permissions', |
|
56 | - 'id', |
|
57 | - ] |
|
58 | - ); |
|
59 | - } elseif ($params['shareType'] === IShare::TYPE_USER) { |
|
60 | - $this->log( |
|
61 | - 'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s" (Share ID: %s)', |
|
62 | - $params, |
|
63 | - [ |
|
64 | - 'itemType', |
|
65 | - 'itemTarget', |
|
66 | - 'itemSource', |
|
67 | - 'shareWith', |
|
68 | - 'permissions', |
|
69 | - 'id', |
|
70 | - ] |
|
71 | - ); |
|
72 | - } elseif ($params['shareType'] === IShare::TYPE_GROUP) { |
|
73 | - $this->log( |
|
74 | - 'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s" (Share ID: %s)', |
|
75 | - $params, |
|
76 | - [ |
|
77 | - 'itemType', |
|
78 | - 'itemTarget', |
|
79 | - 'itemSource', |
|
80 | - 'shareWith', |
|
81 | - 'permissions', |
|
82 | - 'id', |
|
83 | - ] |
|
84 | - ); |
|
85 | - } elseif ($params['shareType'] === IShare::TYPE_ROOM) { |
|
86 | - $this->log( |
|
87 | - 'The %s "%s" with ID "%s" has been shared to the room "%s" with permissions "%s" (Share ID: %s)', |
|
88 | - $params, |
|
89 | - [ |
|
90 | - 'itemType', |
|
91 | - 'itemTarget', |
|
92 | - 'itemSource', |
|
93 | - 'shareWith', |
|
94 | - 'permissions', |
|
95 | - 'id', |
|
96 | - ] |
|
97 | - ); |
|
98 | - } elseif ($params['shareType'] === IShare::TYPE_EMAIL) { |
|
99 | - $this->log( |
|
100 | - 'The %s "%s" with ID "%s" has been shared to the email recipient "%s" with permissions "%s" (Share ID: %s)', |
|
101 | - $params, |
|
102 | - [ |
|
103 | - 'itemType', |
|
104 | - 'itemTarget', |
|
105 | - 'itemSource', |
|
106 | - 'shareWith', |
|
107 | - 'permissions', |
|
108 | - 'id', |
|
109 | - ] |
|
110 | - ); |
|
111 | - } elseif ($params['shareType'] === IShare::TYPE_CIRCLE) { |
|
112 | - $this->log( |
|
113 | - 'The %s "%s" with ID "%s" has been shared to the circle "%s" with permissions "%s" (Share ID: %s)', |
|
114 | - $params, |
|
115 | - [ |
|
116 | - 'itemType', |
|
117 | - 'itemTarget', |
|
118 | - 'itemSource', |
|
119 | - 'shareWith', |
|
120 | - 'permissions', |
|
121 | - 'id', |
|
122 | - ] |
|
123 | - ); |
|
124 | - } elseif ($params['shareType'] === IShare::TYPE_REMOTE) { |
|
125 | - $this->log( |
|
126 | - 'The %s "%s" with ID "%s" has been shared to the remote user "%s" with permissions "%s" (Share ID: %s)', |
|
127 | - $params, |
|
128 | - [ |
|
129 | - 'itemType', |
|
130 | - 'itemTarget', |
|
131 | - 'itemSource', |
|
132 | - 'shareWith', |
|
133 | - 'permissions', |
|
134 | - 'id', |
|
135 | - ] |
|
136 | - ); |
|
137 | - } elseif ($params['shareType'] === IShare::TYPE_REMOTE_GROUP) { |
|
138 | - $this->log( |
|
139 | - 'The %s "%s" with ID "%s" has been shared to the remote group "%s" with permissions "%s" (Share ID: %s)', |
|
140 | - $params, |
|
141 | - [ |
|
142 | - 'itemType', |
|
143 | - 'itemTarget', |
|
144 | - 'itemSource', |
|
145 | - 'shareWith', |
|
146 | - 'permissions', |
|
147 | - 'id', |
|
148 | - ] |
|
149 | - ); |
|
150 | - } elseif ($params['shareType'] === IShare::TYPE_DECK) { |
|
151 | - $this->log( |
|
152 | - 'The %s "%s" with ID "%s" has been shared to the deck card "%s" with permissions "%s" (Share ID: %s)', |
|
153 | - $params, |
|
154 | - [ |
|
155 | - 'itemType', |
|
156 | - 'itemTarget', |
|
157 | - 'itemSource', |
|
158 | - 'shareWith', |
|
159 | - 'permissions', |
|
160 | - 'id', |
|
161 | - ] |
|
162 | - ); |
|
163 | - } |
|
164 | - } |
|
41 | + /** |
|
42 | + * Logs sharing of data |
|
43 | + * |
|
44 | + * @param array $params |
|
45 | + */ |
|
46 | + public function shared(array $params): void { |
|
47 | + if ($params['shareType'] === IShare::TYPE_LINK) { |
|
48 | + $this->log( |
|
49 | + 'The %s "%s" with ID "%s" has been shared via link with permissions "%s" (Share ID: %s)', |
|
50 | + $params, |
|
51 | + [ |
|
52 | + 'itemType', |
|
53 | + 'itemTarget', |
|
54 | + 'itemSource', |
|
55 | + 'permissions', |
|
56 | + 'id', |
|
57 | + ] |
|
58 | + ); |
|
59 | + } elseif ($params['shareType'] === IShare::TYPE_USER) { |
|
60 | + $this->log( |
|
61 | + 'The %s "%s" with ID "%s" has been shared to the user "%s" with permissions "%s" (Share ID: %s)', |
|
62 | + $params, |
|
63 | + [ |
|
64 | + 'itemType', |
|
65 | + 'itemTarget', |
|
66 | + 'itemSource', |
|
67 | + 'shareWith', |
|
68 | + 'permissions', |
|
69 | + 'id', |
|
70 | + ] |
|
71 | + ); |
|
72 | + } elseif ($params['shareType'] === IShare::TYPE_GROUP) { |
|
73 | + $this->log( |
|
74 | + 'The %s "%s" with ID "%s" has been shared to the group "%s" with permissions "%s" (Share ID: %s)', |
|
75 | + $params, |
|
76 | + [ |
|
77 | + 'itemType', |
|
78 | + 'itemTarget', |
|
79 | + 'itemSource', |
|
80 | + 'shareWith', |
|
81 | + 'permissions', |
|
82 | + 'id', |
|
83 | + ] |
|
84 | + ); |
|
85 | + } elseif ($params['shareType'] === IShare::TYPE_ROOM) { |
|
86 | + $this->log( |
|
87 | + 'The %s "%s" with ID "%s" has been shared to the room "%s" with permissions "%s" (Share ID: %s)', |
|
88 | + $params, |
|
89 | + [ |
|
90 | + 'itemType', |
|
91 | + 'itemTarget', |
|
92 | + 'itemSource', |
|
93 | + 'shareWith', |
|
94 | + 'permissions', |
|
95 | + 'id', |
|
96 | + ] |
|
97 | + ); |
|
98 | + } elseif ($params['shareType'] === IShare::TYPE_EMAIL) { |
|
99 | + $this->log( |
|
100 | + 'The %s "%s" with ID "%s" has been shared to the email recipient "%s" with permissions "%s" (Share ID: %s)', |
|
101 | + $params, |
|
102 | + [ |
|
103 | + 'itemType', |
|
104 | + 'itemTarget', |
|
105 | + 'itemSource', |
|
106 | + 'shareWith', |
|
107 | + 'permissions', |
|
108 | + 'id', |
|
109 | + ] |
|
110 | + ); |
|
111 | + } elseif ($params['shareType'] === IShare::TYPE_CIRCLE) { |
|
112 | + $this->log( |
|
113 | + 'The %s "%s" with ID "%s" has been shared to the circle "%s" with permissions "%s" (Share ID: %s)', |
|
114 | + $params, |
|
115 | + [ |
|
116 | + 'itemType', |
|
117 | + 'itemTarget', |
|
118 | + 'itemSource', |
|
119 | + 'shareWith', |
|
120 | + 'permissions', |
|
121 | + 'id', |
|
122 | + ] |
|
123 | + ); |
|
124 | + } elseif ($params['shareType'] === IShare::TYPE_REMOTE) { |
|
125 | + $this->log( |
|
126 | + 'The %s "%s" with ID "%s" has been shared to the remote user "%s" with permissions "%s" (Share ID: %s)', |
|
127 | + $params, |
|
128 | + [ |
|
129 | + 'itemType', |
|
130 | + 'itemTarget', |
|
131 | + 'itemSource', |
|
132 | + 'shareWith', |
|
133 | + 'permissions', |
|
134 | + 'id', |
|
135 | + ] |
|
136 | + ); |
|
137 | + } elseif ($params['shareType'] === IShare::TYPE_REMOTE_GROUP) { |
|
138 | + $this->log( |
|
139 | + 'The %s "%s" with ID "%s" has been shared to the remote group "%s" with permissions "%s" (Share ID: %s)', |
|
140 | + $params, |
|
141 | + [ |
|
142 | + 'itemType', |
|
143 | + 'itemTarget', |
|
144 | + 'itemSource', |
|
145 | + 'shareWith', |
|
146 | + 'permissions', |
|
147 | + 'id', |
|
148 | + ] |
|
149 | + ); |
|
150 | + } elseif ($params['shareType'] === IShare::TYPE_DECK) { |
|
151 | + $this->log( |
|
152 | + 'The %s "%s" with ID "%s" has been shared to the deck card "%s" with permissions "%s" (Share ID: %s)', |
|
153 | + $params, |
|
154 | + [ |
|
155 | + 'itemType', |
|
156 | + 'itemTarget', |
|
157 | + 'itemSource', |
|
158 | + 'shareWith', |
|
159 | + 'permissions', |
|
160 | + 'id', |
|
161 | + ] |
|
162 | + ); |
|
163 | + } |
|
164 | + } |
|
165 | 165 | |
166 | - /** |
|
167 | - * Logs unsharing of data |
|
168 | - * |
|
169 | - * @param array $params |
|
170 | - */ |
|
171 | - public function unshare(array $params): void { |
|
172 | - if ($params['shareType'] === IShare::TYPE_LINK) { |
|
173 | - $this->log( |
|
174 | - 'The %s "%s" with ID "%s" has been unshared (Share ID: %s)', |
|
175 | - $params, |
|
176 | - [ |
|
177 | - 'itemType', |
|
178 | - 'fileTarget', |
|
179 | - 'itemSource', |
|
180 | - 'id', |
|
181 | - ] |
|
182 | - ); |
|
183 | - } elseif ($params['shareType'] === IShare::TYPE_USER) { |
|
184 | - $this->log( |
|
185 | - 'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)', |
|
186 | - $params, |
|
187 | - [ |
|
188 | - 'itemType', |
|
189 | - 'fileTarget', |
|
190 | - 'itemSource', |
|
191 | - 'shareWith', |
|
192 | - 'id', |
|
193 | - ] |
|
194 | - ); |
|
195 | - } elseif ($params['shareType'] === IShare::TYPE_GROUP) { |
|
196 | - $this->log( |
|
197 | - 'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)', |
|
198 | - $params, |
|
199 | - [ |
|
200 | - 'itemType', |
|
201 | - 'fileTarget', |
|
202 | - 'itemSource', |
|
203 | - 'shareWith', |
|
204 | - 'id', |
|
205 | - ] |
|
206 | - ); |
|
207 | - } elseif ($params['shareType'] === IShare::TYPE_ROOM) { |
|
208 | - $this->log( |
|
209 | - 'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)', |
|
210 | - $params, |
|
211 | - [ |
|
212 | - 'itemType', |
|
213 | - 'fileTarget', |
|
214 | - 'itemSource', |
|
215 | - 'shareWith', |
|
216 | - 'id', |
|
217 | - ] |
|
218 | - ); |
|
219 | - } elseif ($params['shareType'] === IShare::TYPE_EMAIL) { |
|
220 | - $this->log( |
|
221 | - 'The %s "%s" with ID "%s" has been unshared from the email recipient "%s" (Share ID: %s)', |
|
222 | - $params, |
|
223 | - [ |
|
224 | - 'itemType', |
|
225 | - 'fileTarget', |
|
226 | - 'itemSource', |
|
227 | - 'shareWith', |
|
228 | - 'id', |
|
229 | - ] |
|
230 | - ); |
|
231 | - } elseif ($params['shareType'] === IShare::TYPE_CIRCLE) { |
|
232 | - $this->log( |
|
233 | - 'The %s "%s" with ID "%s" has been unshared from the circle "%s" (Share ID: %s)', |
|
234 | - $params, |
|
235 | - [ |
|
236 | - 'itemType', |
|
237 | - 'fileTarget', |
|
238 | - 'itemSource', |
|
239 | - 'shareWith', |
|
240 | - 'id', |
|
241 | - ] |
|
242 | - ); |
|
243 | - } elseif ($params['shareType'] === IShare::TYPE_REMOTE) { |
|
244 | - $this->log( |
|
245 | - 'The %s "%s" with ID "%s" has been unshared from the remote user "%s" (Share ID: %s)', |
|
246 | - $params, |
|
247 | - [ |
|
248 | - 'itemType', |
|
249 | - 'fileTarget', |
|
250 | - 'itemSource', |
|
251 | - 'shareWith', |
|
252 | - 'id', |
|
253 | - ] |
|
254 | - ); |
|
255 | - } elseif ($params['shareType'] === IShare::TYPE_REMOTE_GROUP) { |
|
256 | - $this->log( |
|
257 | - 'The %s "%s" with ID "%s" has been unshared from the remote group "%s" (Share ID: %s)', |
|
258 | - $params, |
|
259 | - [ |
|
260 | - 'itemType', |
|
261 | - 'fileTarget', |
|
262 | - 'itemSource', |
|
263 | - 'shareWith', |
|
264 | - 'id', |
|
265 | - ] |
|
266 | - ); |
|
267 | - } elseif ($params['shareType'] === IShare::TYPE_DECK) { |
|
268 | - $this->log( |
|
269 | - 'The %s "%s" with ID "%s" has been unshared from the deck card "%s" (Share ID: %s)', |
|
270 | - $params, |
|
271 | - [ |
|
272 | - 'itemType', |
|
273 | - 'fileTarget', |
|
274 | - 'itemSource', |
|
275 | - 'shareWith', |
|
276 | - 'id', |
|
277 | - ] |
|
278 | - ); |
|
279 | - } |
|
280 | - } |
|
166 | + /** |
|
167 | + * Logs unsharing of data |
|
168 | + * |
|
169 | + * @param array $params |
|
170 | + */ |
|
171 | + public function unshare(array $params): void { |
|
172 | + if ($params['shareType'] === IShare::TYPE_LINK) { |
|
173 | + $this->log( |
|
174 | + 'The %s "%s" with ID "%s" has been unshared (Share ID: %s)', |
|
175 | + $params, |
|
176 | + [ |
|
177 | + 'itemType', |
|
178 | + 'fileTarget', |
|
179 | + 'itemSource', |
|
180 | + 'id', |
|
181 | + ] |
|
182 | + ); |
|
183 | + } elseif ($params['shareType'] === IShare::TYPE_USER) { |
|
184 | + $this->log( |
|
185 | + 'The %s "%s" with ID "%s" has been unshared from the user "%s" (Share ID: %s)', |
|
186 | + $params, |
|
187 | + [ |
|
188 | + 'itemType', |
|
189 | + 'fileTarget', |
|
190 | + 'itemSource', |
|
191 | + 'shareWith', |
|
192 | + 'id', |
|
193 | + ] |
|
194 | + ); |
|
195 | + } elseif ($params['shareType'] === IShare::TYPE_GROUP) { |
|
196 | + $this->log( |
|
197 | + 'The %s "%s" with ID "%s" has been unshared from the group "%s" (Share ID: %s)', |
|
198 | + $params, |
|
199 | + [ |
|
200 | + 'itemType', |
|
201 | + 'fileTarget', |
|
202 | + 'itemSource', |
|
203 | + 'shareWith', |
|
204 | + 'id', |
|
205 | + ] |
|
206 | + ); |
|
207 | + } elseif ($params['shareType'] === IShare::TYPE_ROOM) { |
|
208 | + $this->log( |
|
209 | + 'The %s "%s" with ID "%s" has been unshared from the room "%s" (Share ID: %s)', |
|
210 | + $params, |
|
211 | + [ |
|
212 | + 'itemType', |
|
213 | + 'fileTarget', |
|
214 | + 'itemSource', |
|
215 | + 'shareWith', |
|
216 | + 'id', |
|
217 | + ] |
|
218 | + ); |
|
219 | + } elseif ($params['shareType'] === IShare::TYPE_EMAIL) { |
|
220 | + $this->log( |
|
221 | + 'The %s "%s" with ID "%s" has been unshared from the email recipient "%s" (Share ID: %s)', |
|
222 | + $params, |
|
223 | + [ |
|
224 | + 'itemType', |
|
225 | + 'fileTarget', |
|
226 | + 'itemSource', |
|
227 | + 'shareWith', |
|
228 | + 'id', |
|
229 | + ] |
|
230 | + ); |
|
231 | + } elseif ($params['shareType'] === IShare::TYPE_CIRCLE) { |
|
232 | + $this->log( |
|
233 | + 'The %s "%s" with ID "%s" has been unshared from the circle "%s" (Share ID: %s)', |
|
234 | + $params, |
|
235 | + [ |
|
236 | + 'itemType', |
|
237 | + 'fileTarget', |
|
238 | + 'itemSource', |
|
239 | + 'shareWith', |
|
240 | + 'id', |
|
241 | + ] |
|
242 | + ); |
|
243 | + } elseif ($params['shareType'] === IShare::TYPE_REMOTE) { |
|
244 | + $this->log( |
|
245 | + 'The %s "%s" with ID "%s" has been unshared from the remote user "%s" (Share ID: %s)', |
|
246 | + $params, |
|
247 | + [ |
|
248 | + 'itemType', |
|
249 | + 'fileTarget', |
|
250 | + 'itemSource', |
|
251 | + 'shareWith', |
|
252 | + 'id', |
|
253 | + ] |
|
254 | + ); |
|
255 | + } elseif ($params['shareType'] === IShare::TYPE_REMOTE_GROUP) { |
|
256 | + $this->log( |
|
257 | + 'The %s "%s" with ID "%s" has been unshared from the remote group "%s" (Share ID: %s)', |
|
258 | + $params, |
|
259 | + [ |
|
260 | + 'itemType', |
|
261 | + 'fileTarget', |
|
262 | + 'itemSource', |
|
263 | + 'shareWith', |
|
264 | + 'id', |
|
265 | + ] |
|
266 | + ); |
|
267 | + } elseif ($params['shareType'] === IShare::TYPE_DECK) { |
|
268 | + $this->log( |
|
269 | + 'The %s "%s" with ID "%s" has been unshared from the deck card "%s" (Share ID: %s)', |
|
270 | + $params, |
|
271 | + [ |
|
272 | + 'itemType', |
|
273 | + 'fileTarget', |
|
274 | + 'itemSource', |
|
275 | + 'shareWith', |
|
276 | + 'id', |
|
277 | + ] |
|
278 | + ); |
|
279 | + } |
|
280 | + } |
|
281 | 281 | |
282 | - /** |
|
283 | - * Logs the updating of permission changes for shares |
|
284 | - * |
|
285 | - * @param array $params |
|
286 | - */ |
|
287 | - public function updatePermissions(array $params): void { |
|
288 | - $this->log( |
|
289 | - 'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"', |
|
290 | - $params, |
|
291 | - [ |
|
292 | - 'itemType', |
|
293 | - 'path', |
|
294 | - 'itemSource', |
|
295 | - 'permissions', |
|
296 | - ] |
|
297 | - ); |
|
298 | - } |
|
282 | + /** |
|
283 | + * Logs the updating of permission changes for shares |
|
284 | + * |
|
285 | + * @param array $params |
|
286 | + */ |
|
287 | + public function updatePermissions(array $params): void { |
|
288 | + $this->log( |
|
289 | + 'The permissions of the shared %s "%s" with ID "%s" have been changed to "%s"', |
|
290 | + $params, |
|
291 | + [ |
|
292 | + 'itemType', |
|
293 | + 'path', |
|
294 | + 'itemSource', |
|
295 | + 'permissions', |
|
296 | + ] |
|
297 | + ); |
|
298 | + } |
|
299 | 299 | |
300 | - /** |
|
301 | - * Logs the password changes for a share |
|
302 | - * |
|
303 | - * @param array $params |
|
304 | - */ |
|
305 | - public function updatePassword(array $params): void { |
|
306 | - $this->log( |
|
307 | - 'The password of the publicly shared %s "%s" with ID "%s" has been changed', |
|
308 | - $params, |
|
309 | - [ |
|
310 | - 'itemType', |
|
311 | - 'token', |
|
312 | - 'itemSource', |
|
313 | - ] |
|
314 | - ); |
|
315 | - } |
|
300 | + /** |
|
301 | + * Logs the password changes for a share |
|
302 | + * |
|
303 | + * @param array $params |
|
304 | + */ |
|
305 | + public function updatePassword(array $params): void { |
|
306 | + $this->log( |
|
307 | + 'The password of the publicly shared %s "%s" with ID "%s" has been changed', |
|
308 | + $params, |
|
309 | + [ |
|
310 | + 'itemType', |
|
311 | + 'token', |
|
312 | + 'itemSource', |
|
313 | + ] |
|
314 | + ); |
|
315 | + } |
|
316 | 316 | |
317 | - /** |
|
318 | - * Logs the expiration date changes for a share |
|
319 | - * |
|
320 | - * @param array $params |
|
321 | - */ |
|
322 | - public function updateExpirationDate(array $params): void { |
|
323 | - if ($params['date'] === null) { |
|
324 | - $this->log( |
|
325 | - 'The expiration date of the publicly shared %s with ID "%s" has been changed removed', |
|
326 | - $params, |
|
327 | - [ |
|
328 | - 'itemType', |
|
329 | - 'itemSource', |
|
330 | - ] |
|
331 | - ); |
|
332 | - } else { |
|
333 | - $this->log( |
|
334 | - 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', |
|
335 | - $params, |
|
336 | - [ |
|
337 | - 'itemType', |
|
338 | - 'itemSource', |
|
339 | - 'date', |
|
340 | - ] |
|
341 | - ); |
|
342 | - } |
|
343 | - } |
|
317 | + /** |
|
318 | + * Logs the expiration date changes for a share |
|
319 | + * |
|
320 | + * @param array $params |
|
321 | + */ |
|
322 | + public function updateExpirationDate(array $params): void { |
|
323 | + if ($params['date'] === null) { |
|
324 | + $this->log( |
|
325 | + 'The expiration date of the publicly shared %s with ID "%s" has been changed removed', |
|
326 | + $params, |
|
327 | + [ |
|
328 | + 'itemType', |
|
329 | + 'itemSource', |
|
330 | + ] |
|
331 | + ); |
|
332 | + } else { |
|
333 | + $this->log( |
|
334 | + 'The expiration date of the publicly shared %s with ID "%s" has been changed to "%s"', |
|
335 | + $params, |
|
336 | + [ |
|
337 | + 'itemType', |
|
338 | + 'itemSource', |
|
339 | + 'date', |
|
340 | + ] |
|
341 | + ); |
|
342 | + } |
|
343 | + } |
|
344 | 344 | |
345 | - /** |
|
346 | - * Logs access of shared files |
|
347 | - * |
|
348 | - * @param array $params |
|
349 | - */ |
|
350 | - public function shareAccessed(array $params): void { |
|
351 | - $this->log( |
|
352 | - 'The shared %s with the token "%s" by "%s" has been accessed.', |
|
353 | - $params, |
|
354 | - [ |
|
355 | - 'itemType', |
|
356 | - 'token', |
|
357 | - 'uidOwner', |
|
358 | - ] |
|
359 | - ); |
|
360 | - } |
|
345 | + /** |
|
346 | + * Logs access of shared files |
|
347 | + * |
|
348 | + * @param array $params |
|
349 | + */ |
|
350 | + public function shareAccessed(array $params): void { |
|
351 | + $this->log( |
|
352 | + 'The shared %s with the token "%s" by "%s" has been accessed.', |
|
353 | + $params, |
|
354 | + [ |
|
355 | + 'itemType', |
|
356 | + 'token', |
|
357 | + 'uidOwner', |
|
358 | + ] |
|
359 | + ); |
|
360 | + } |
|
361 | 361 | } |