Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into feature/BAI-1570-writ…
Browse files Browse the repository at this point in the history
…e-a-script-that-calculates-the-total-size-of-all-files-in-bailo
  • Loading branch information
PE39806 committed Jan 8, 2025
2 parents cb60d15 + b763203 commit f136fe5
Show file tree
Hide file tree
Showing 23 changed files with 10,214 additions and 3,566 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
node-version: 18.18.0
cache: "npm"

# Install dependencies
Expand All @@ -124,7 +124,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
node-version: 18.18.0
cache: "npm"

# Install dependencies
Expand All @@ -144,7 +144,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
node-version: 18.18.0
cache: "npm"

# Setup BuildX
Expand Down Expand Up @@ -305,7 +305,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
node-version: 18.18.0
cache: "npm"

# Setup BuildX
Expand Down Expand Up @@ -431,7 +431,7 @@ jobs:
- name: Use Node.js 18
uses: actions/setup-node@v3
with:
node-version: 18.17.1
node-version: 18.18.0
cache: "npm"

# Setup BuildX
Expand Down
6 changes: 5 additions & 1 deletion backend/src/connectors/authorisation/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,11 @@ export class BasicAuthorisationConnector {
return { id: model.id, success: false, info: 'You do not have permission to update a model card.' }
}

if (ModelAction.Update === action && (await missingRequiredRole(user, model, ['owner', 'mtr', 'msro']))) {
if (
ModelAction.Update === action &&
(await missingRequiredRole(user, model, ['owner', 'mtr', 'msro'])) &&
!(await authentication.hasRole(user, Roles.Admin))
) {
return { id: model.id, success: false, info: 'You do not have permission to update a model.' }
}

Expand Down
Loading

0 comments on commit f136fe5

Please sign in to comment.