Skip to content

Commit

Permalink
feat(frontpage): add "content-admin" role to access control for addpa…
Browse files Browse the repository at this point in the history
…ge, edit, editable, and notfoundauth pages

The "content-admin" role is added to the access control for the following pages: addpage, edit, editable, and notfoundauth. This allows users with the "content-admin" role to access and perform actions on these pages.
  • Loading branch information
ktun95 committed Feb 11, 2024
1 parent 9cbafe2 commit e33423c
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default AddPage
export const access = ACCESS.private
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Edit
export const access = ACCESS.private
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Editable
export const access = ACCESS.private
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default NotFoundErrorAuth
export const access = ACCESS.public
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default AddPage
export const access = ACCESS.private
export const roles = ["content-admin"]
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/[section]/[name]/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Edit
export const access = ACCESS.private
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Editable
export const access = ACCESS.private
export const roles = ["content-admin"]
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default NotFoundErrorAuth
export const access = ACCESS.public
export const roles = ["content-admin"]
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/about/addpage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default AddPage
export const access = ACCESS.private
export const roles = ["content-admin"]
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/about/edit.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Edit
export const access = ACCESS.private
export const roles = ["content-admin"]
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/about/editable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default Editable
export const access = ACCESS.private
export const roles = ["content-admin"]
1 change: 1 addition & 0 deletions apps/dicty-frontpage/src/pages/about/notfoundauth.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ import { ACCESS } from "../../app/routes/types"
// eslint-disable-next-line unicorn/prefer-export-from, import/no-default-export
export default NotFoundErrorAuth
export const access = ACCESS.public
export const roles = ["content-admin"]

0 comments on commit e33423c

Please sign in to comment.