Skip to content

Commit

Permalink
Merge pull request #23 from Cyber4All/main
Browse files Browse the repository at this point in the history
`Main` to `Releases` -- added Notes ACL
  • Loading branch information
pzalep1 authored Dec 16, 2022
2 parents 96ddd76 + 70386e0 commit 50cd6fd
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 13 deletions.
10 changes: 10 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ defaults: &defaults
docker:
- image: cimg/node:lts

orbs:
cyber4all: cyber4all/orb@1

jobs:
build:
<<: *defaults
Expand Down Expand Up @@ -56,3 +59,10 @@ workflows:
filters:
branches:
only: /releases/
- cyber4all/sbom:
context: [Shortcut]
language: node
filters:
branches:
only:
- releases
22 changes: 11 additions & 11 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "competency-acl",
"version": "0.2.0",
"version": "0.3.0",
"description": "",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -21,7 +21,7 @@
},
"homepage": "https://github.com/Cyber4All/competency-acl#readme",
"devDependencies": {
"@types/jest": "^28.1.4",
"@types/jest": "^28.1.8",
"@typescript-eslint/eslint-plugin": "^5.30.6",
"eslint": "^8.19.0",
"husky": "^8.0.1",
Expand Down
7 changes: 7 additions & 0 deletions src/const.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ enum MODULES {
behavior = "behavior",
degree = "degree",
employability = "employability",
notes = "notes",
user = "user",
apiKey = "apiKey",
search = "search",
Expand Down Expand Up @@ -64,6 +65,11 @@ export const competencyAcl = {
updateDraft: `${SERVICES.competency}:${MODULES.employability}:updateDraft`,
updateSubmitted: `${SERVICES.competency}:${MODULES.employability}:updateSubmitted`
},
notes: {
wildcard: `${SERVICES.competency}:${MODULES.notes}:*`,
updateDraft: `${SERVICES.competency}:${MODULES.notes}:updateDraft`,
updateSubmitted: `${SERVICES.competency}:${MODULES.notes}:updateSubmitted`
},
user: {
wildcard: `${SERVICES.competency}:${MODULES.user}:*`,
getUsers: `${SERVICES.competency}:${MODULES.user}:getUsers`,
Expand Down Expand Up @@ -109,6 +115,7 @@ export const basic_user_permissions = [
competencyAcl.behavior.updateDraft,
competencyAcl.degree.updateDraft,
competencyAcl.employability.updateDraft,
competencyAcl.notes.updateDraft,
competencyAcl.user.getProfile,
competencyAcl.user.updateAccount,
competencyAcl.search.wildcard,
Expand Down

0 comments on commit 50cd6fd

Please sign in to comment.