Updated some db-apis so it appends the current version of the document.
Also this PR adds permissions field to the community model. Now the community is the one who defines the permissions by role, so this is abstracted from keycloak. This is handy cause now we can define things and change it without needing the logic by keycloak (if not, we needed to create custom mappers and that is a bit stressing to deal with)
Updated some db-apis so it appends the current version of the document.
Also this PR adds
permissions
field to the community model. Now the community is the one who defines the permissions by role, so this is abstracted from keycloak. This is handy cause now we can define things and change it without needing the logic by keycloak (if not, we needed to create custom mappers and that is a bit stressing to deal with)Also some init script fixes