File tree Expand file tree Collapse file tree 1 file changed +77
-2
lines changed
apps/admin_audit/lib/Actions Expand file tree Collapse file tree 1 file changed +77
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,46 @@ public function shared(array $params) {
103103 'permissions ' ,
104104 'id ' ,
105105 ]
106- );
106+ );
107+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_CIRCLE ) {
108+ $ this ->log (
109+ 'The %s "%s" with ID "%s" has been shared to the circle "%s" with permissions "%s" (Share ID: %s) ' ,
110+ $ params ,
111+ [
112+ 'itemType ' ,
113+ 'itemTarget ' ,
114+ 'itemSource ' ,
115+ 'shareWith ' ,
116+ 'permissions ' ,
117+ 'id ' ,
118+ ]
119+ );
120+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_REMOTE ) {
121+ $ this ->log (
122+ 'The %s "%s" with ID "%s" has been shared to the remote user "%s" with permissions "%s" (Share ID: %s) ' ,
123+ $ params ,
124+ [
125+ 'itemType ' ,
126+ 'itemTarget ' ,
127+ 'itemSource ' ,
128+ 'shareWith ' ,
129+ 'permissions ' ,
130+ 'id ' ,
131+ ]
132+ );
133+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_REMOTE_GROUP ) {
134+ $ this ->log (
135+ 'The %s "%s" with ID "%s" has been shared to the remote group "%s" with permissions "%s" (Share ID: %s) ' ,
136+ $ params ,
137+ [
138+ 'itemType ' ,
139+ 'itemTarget ' ,
140+ 'itemSource ' ,
141+ 'shareWith ' ,
142+ 'permissions ' ,
143+ 'id ' ,
144+ ]
145+ );
107146 }
108147 }
109148
@@ -171,7 +210,43 @@ public function unshare(array $params) {
171210 'shareWith ' ,
172211 'id ' ,
173212 ]
174- );
213+ );
214+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_CIRCLE ) {
215+ $ this ->log (
216+ 'The %s "%s" with ID "%s" has been unshared from the circle "%s" (Share ID: %s) ' ,
217+ $ params ,
218+ [
219+ 'itemType ' ,
220+ 'fileTarget ' ,
221+ 'itemSource ' ,
222+ 'shareWith ' ,
223+ 'id ' ,
224+ ]
225+ );
226+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_REMOTE ) {
227+ $ this ->log (
228+ 'The %s "%s" with ID "%s" has been unshared from the remote user "%s" (Share ID: %s) ' ,
229+ $ params ,
230+ [
231+ 'itemType ' ,
232+ 'fileTarget ' ,
233+ 'itemSource ' ,
234+ 'shareWith ' ,
235+ 'id ' ,
236+ ]
237+ );
238+ } elseif ($ params ['shareType ' ] === Share::SHARE_TYPE_REMOTE_GROUP ) {
239+ $ this ->log (
240+ 'The %s "%s" with ID "%s" has been unshared from the remote group "%s" (Share ID: %s) ' ,
241+ $ params ,
242+ [
243+ 'itemType ' ,
244+ 'fileTarget ' ,
245+ 'itemSource ' ,
246+ 'shareWith ' ,
247+ 'id ' ,
248+ ]
249+ );
175250 }
176251 }
177252
You can’t perform that action at this time.
0 commit comments