MM-51321 Refactor audit log application. (#22481)
* Refactor audit log application. * Fix incorrect API Usage for Auditing * Fixups. * Rename Object audit to Auditable. Some small fixes. --------- Co-authored-by: Daniel Schalla <daniel@schalla.me>
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
9a38a52392
Коммит
7804debb7f
@@ -153,6 +153,13 @@ type GroupSyncablePatch struct {
|
||||
SchemeAdmin *bool `json:"scheme_admin"`
|
||||
}
|
||||
|
||||
func (syncable *GroupSyncablePatch) Auditable() map[string]interface{} {
|
||||
return map[string]interface{}{
|
||||
"auto_add": syncable.AutoAdd,
|
||||
"scheme_admin": syncable.SchemeAdmin,
|
||||
}
|
||||
}
|
||||
|
||||
func (syncable *GroupSyncable) Patch(patch *GroupSyncablePatch) {
|
||||
if patch.AutoAdd != nil {
|
||||
syncable.AutoAdd = *patch.AutoAdd
|
||||
|
||||
Ссылка в новой задаче
Block a user