Skip to content

Commit

Permalink
Merge pull request #3689 from huridocs/crons_with_permisssions_fix
Browse files Browse the repository at this point in the history
HOTFIX, crons now run with permissions command context
  • Loading branch information
fnocetti authored May 25, 2021
2 parents ae14cef + f557862 commit 1bd93b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions app/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import { multitenantMiddleware } from './api/utils/multitenantMiddleware';
import { staticFilesMiddleware } from './api/utils/staticFilesMiddleware';
import { customUploadsPath, uploadsPath } from './api/files/filesystem';
import { tocService } from './api/toc_generation/tocService';
import { permissionsContext } from './api/permissions/permissionsContext';

mongoose.Promise = Promise;

Expand Down Expand Up @@ -114,6 +115,7 @@ DB.connect(config.DBHOST, dbAuth).then(async () => {

http.listen(port, bindAddress, async () => {
await tenants.run(async () => {
permissionsContext.setCommandContext();
if (!config.multiTenant && !config.clusterMode) {
syncWorker.start();

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uwazi",
"version": "1.30.0",
"version": "1.30.1",
"description": "Uwazi is a free, open-source solution for organising, analysing and publishing your documents.",
"keywords": [
"react"
Expand Down

0 comments on commit 1bd93b8

Please sign in to comment.