Allow to change preferences with machine token (#12637)

6.19.x
Mykola Morhun 2019-02-12 14:05:26 +02:00 committed by GitHub
parent 12fc13e73b
commit e2991cd050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -67,7 +67,9 @@ public class MachineAuthModule extends AbstractModule {
"resolveFactory"));
machineAuthenticatedResources
.addBinding()
.toInstance(new MachineAuthenticatedResource("/preferences", "find"));
.toInstance(
new MachineAuthenticatedResource(
"/preferences", "find", "save", "update", "removePreferences"));
machineAuthenticatedResources
.addBinding()
.toInstance(new MachineAuthenticatedResource("/activity", "active"));