Skip to content

Commit

Permalink
feat: add role iam for efficient cfe doctypes access control (#12)
Browse files Browse the repository at this point in the history
* feat: add role iam for efficient cfe doctypes access control

* chore: autoupdate pre-commit

---------

Co-authored-by: Revant Nandgaonkar <[email protected]>
  • Loading branch information
ahmed0917 and revant authored Dec 17, 2024
1 parent 03404a9 commit 43d3728
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,43 +2,43 @@
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files

- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.19.1
hooks:
- id: pyupgrade
args: [--py37-plus]

- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black

- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
rev: 7.1.1
hooks:
- id: flake8
additional_dependencies:
- 'flake8-print==4.0.1'

- repo: https://github.com/pycqa/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.0-alpha.4
rev: v4.0.0-alpha.8
hooks:
- id: prettier

- repo: https://github.com/codespell-project/codespell
rev: v2.2.2
rev: v2.3.0
hooks:
- id: codespell
exclude: yarn.lock
Expand All @@ -47,7 +47,7 @@ repos:
- 'ro'

- repo: https://github.com/pre-commit/mirrors-eslint
rev: v8.33.0
rev: v9.17.0
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,18 @@
"role": "System Manager",
"share": 1,
"write": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Identity Access Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
Expand Down
12 changes: 12 additions & 0 deletions castlecraft/castlecraft/doctype/cfe_user_claim/cfe_user_claim.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@
"read": 1,
"role": "Desk User",
"select": 1
},
{
"create": 1,
"delete": 1,
"email": 1,
"export": 1,
"print": 1,
"read": 1,
"report": 1,
"role": "Identity Access Manager",
"share": 1,
"write": 1
}
],
"sort_field": "modified",
Expand Down

0 comments on commit 43d3728

Please sign in to comment.