mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-19 10:17:41 -04:00
fix userlog policy violation/antivirus event handling, enabled granular notifications
This commit is contained in:
1 parent
f60e2e52e5
commit
df16f6d07f
4 files changed
+11
-1
No files matched your search
Vendored
+2
-1
@@ -73,7 +73,8 @@
|
||||
|
||||
// service accounts
|
||||
"OC_SERVICE_ACCOUNT_ID": "service-account-id",
|
||||
"OC_SERVICE_ACCOUNT_SECRET": "service-account-secret"
|
||||
"OC_SERVICE_ACCOUNT_SECRET": "service-account-secret",
|
||||
"FRONTEND_CONFIGURABLE_NOTIFICATIONS": "true"
|
||||
}
|
||||
},
|
||||
{
|
||||
|
||||
@@ -58,6 +58,7 @@ services:
|
||||
COMPANION_DOMAIN: ${COMPANION_DOMAIN:-companion.opencloud.test}
|
||||
# enable to allow using the banned passwords list
|
||||
OC_PASSWORD_POLICY_BANNED_PASSWORDS_LIST: banned-password-list.txt
|
||||
FRONTEND_CONFIGURABLE_NOTIFICATIONS: "true"
|
||||
volumes:
|
||||
- ./config/opencloud/app-registry.yaml:/etc/opencloud/app-registry.yaml
|
||||
- ./config/opencloud/csp.yaml:/etc/opencloud/csp.yaml
|
||||
|
||||
@@ -65,6 +65,8 @@ func (ulf userlogFilter) filterUsersBySettings(ctx context.Context, users []stri
|
||||
settingId = defaults.SettingUUIDProfileEventSpaceDeleted
|
||||
case ocEvents.ResourceMention:
|
||||
settingId = defaults.SettingUUIDProfileEventResourceMention
|
||||
case events.PostprocessingStepFinished:
|
||||
settingId = defaults.SettingUUIDProfileEventPostprocessingStepFinished
|
||||
default:
|
||||
// event that cannot be disabled
|
||||
return users
|
||||
|
||||
@@ -174,5 +174,11 @@ var _ = Describe("NotificationFilter", func() {
|
||||
|
||||
Expect(ulf.execute(context.TODO(), events.Event{Event: events.SpaceDeleted{}}, nil, []string{"foo"})).To(BeEmpty())
|
||||
})
|
||||
|
||||
It("handles PostprocessingStepFinished disabled", func() {
|
||||
ulf.valueClient = setupMockValueService(false)
|
||||
|
||||
Expect(ulf.execute(context.TODO(), events.Event{Event: events.PostprocessingStepFinished{}}, nil, []string{"foo"})).To(BeEmpty())
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in new issue
Block a user