Browse Source

Merge pull request #1893 from Budibase/fix/user-app-role-list

Fixing user roles administration - getting full list of apps
gh-pages
Michael Drury 5 years ago
committed by GitHub
parent
commit
12761cfe80
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      packages/worker/src/api/controllers/admin/roles.js

2
packages/worker/src/api/controllers/admin/roles.js

@ -8,7 +8,7 @@ const CouchDB = require("../../../db")
exports.fetch = async ctx => { exports.fetch = async ctx => {
// always use the dev apps as they'll be most up to date (true) // always use the dev apps as they'll be most up to date (true)
const apps = await getAllApps({ CouchDB, dev: true }) const apps = await getAllApps({ CouchDB, all: true })
const promises = [] const promises = []
for (let app of apps) { for (let app of apps) {
// use dev app IDs // use dev app IDs

Loading…
Cancel
Save