Browse Source

Add checkout pro step to budibase-ci

master
Rory Powell 5 years ago
parent
commit
b5de92d0a0
  1. 5
      .github/workflows/budibase_ci.yml
  2. 3
      package.json
  3. 4
      packages/server/src/middleware/authorized.ts

5
.github/workflows/budibase_ci.yml

@ -22,6 +22,11 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
repository: budibase/budibase-pro
path: './pro'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1

3
package.json

@ -21,8 +21,7 @@
},
"scripts": {
"setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "yarn run pre-bootstrap && lerna link && lerna bootstrap",
"pre-bootstrap": "./scripts/link-dependencies.sh",
"bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
"build": "lerna run build",
"publishnpm": "yarn build && lerna publish --force-publish",
"release": "lerna publish patch --yes --force-publish",

4
packages/server/src/middleware/authorized.ts

@ -88,8 +88,8 @@ export = (permType: any, permLevel: any = null, opts = { schema: false }) =>
await builderMiddleware(ctx, permType)
// get the resource roles
let resourceRoles = [],
otherLevelRoles
let resourceRoles: any = []
let otherLevelRoles: any = []
const otherLevel =
permLevel === PermissionLevels.READ
? PermissionLevels.WRITE

Loading…
Cancel
Save