Browse Source

Add checkout pro step to budibase-ci

pull/5001/head
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: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2
with:
repository: budibase/budibase-pro
path: './pro'
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1 uses: actions/setup-node@v1

3
package.json

@ -21,8 +21,7 @@
}, },
"scripts": { "scripts": {
"setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev", "setup": "node ./hosting/scripts/setup.js && yarn && yarn bootstrap && yarn build && yarn dev",
"bootstrap": "yarn run pre-bootstrap && lerna link && lerna bootstrap", "bootstrap": "lerna link && lerna bootstrap && ./scripts/link-dependencies.sh",
"pre-bootstrap": "./scripts/link-dependencies.sh",
"build": "lerna run build", "build": "lerna run build",
"publishnpm": "yarn build && lerna publish --force-publish", "publishnpm": "yarn build && lerna publish --force-publish",
"release": "lerna publish patch --yes --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) await builderMiddleware(ctx, permType)
// get the resource roles // get the resource roles
let resourceRoles = [], let resourceRoles: any = []
otherLevelRoles let otherLevelRoles: any = []
const otherLevel = const otherLevel =
permLevel === PermissionLevels.READ permLevel === PermissionLevels.READ
? PermissionLevels.WRITE ? PermissionLevels.WRITE

Loading…
Cancel
Save