Roles of the admin: list, editor and grants from the permission catalogue, with the site's Public role (A-32)
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- csharp
- Lĩnh vực
- backend-api-design, frontend
Hướng nghiên cứu
Read sections 4.15 and 10.7 of docs/planning/admin-technical-spec.md, then trace the administration assembly and its existing Management API integration. The proposal names /roles, /roles/{id}, GET /permissions, GET /plugins, GET /me/access, and the PUT save flow; use these to locate the relevant entry points and component and API tests. Done means the acceptance cases pass, including grant constraints, site scoping, Public role behavior, and refusal handling.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Problem
Rows 3.16, 4.3 to 4.8 and 8.14 ask that roles and their grants are edited in the admin, the permissions of plugins among them, and row 4.8 that the public access of a site is set there. The Management API has /roles and GET /permissions, and the admin has no page for them.
Proposal
Pages /roles and /roles/{id} in the administration assembly (4.15):
- The list of the roles the caller may manage:
roles.managefor the instance shows every role, and in a site that site's roles. The server answers the whole list, so the page filters what it read. - The editor: name, description, site,
requireTwoFactorand the grants. - A grant picks a permission or a pattern from the catalogue of
GET /permissions, grouped by itssource(core, content, plugin, settings), with the plugin behind a permission fromcontributions.permissionsofGET /plugins(row 8.14). - The editor marks what the caller does not hold, from
GET /me/access, and the server stays the authority: its 403FCMS3103names the role and is shown on it. - A save replaces every grant of the role (
PUT). So the editor sends back each constraint of a grant as it read it,resourcesamong them, although it does not edit them: constraints are A-52's, and until then they show read-only on their grant. - A role has no
ETag. A concurrent change answersFCMS3045; the editor says so and reads the role again without dropping what the user typed. - The site's Public role is edited in the same editor, under a notice that its grants are what anyone reads without signing in (row 4.8).
- Refusals by their code: a built-in role changed or deleted (
FCMS3043), a role still held (FCMS3044), the last active Super Admin (FCMS3052).
Acceptance
- An administrator makes a role with grants of core, of a content type and of a plugin, changes it and deletes it
- A role with constrained grants is saved with its name changed and keeps every constraint,
resourcesincluded - A grant the caller does not hold is marked, and the server's refusal is shown on the role
- The Public role of the site is edited under its notice, and what it grants is read without signing in
- A caller who holds
roles.managein one site sees and changes that site's roles only - Component tests cover the catalogue, the round trip of constraints and the refusals; the API tests check the records against the OpenAPI document; an end-to-end case makes a role and gives it to a user
Design: docs/planning/admin-technical-spec.md, sections 4.15 and 10.7 (A-32). Rows 3.16, 4.3 to 4.8, 8.14. Needs A-51. Split when A6 was planned: the constraints of a grant are A-52. Size: M.
- Ngôn ngữ chính
- C#
- Star
- 567
- Fork
- 107
- Merge trung bình
- 1 giờ 19 phút
- Pull request đã merge (30 ngày)
- 353
Chuẩn bị môi trường
- Có Dockerfile hoặc tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của fluentcms/FluentCMS
-
area:localization plugin type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage type:bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:testing type:bug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:publishing type:feature
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
fluentcms/FluentCMS#3473 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:storage plugin type:bug
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của fluentcms/FluentCMS
Issue tương tự
-
fix(ocr): compile the Tesseract-free pipeline with Tokio runtimeCó thể đã có người làm @Goldziher đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
lompotc silently drops Java/C# class members past 128 instead of erroring, as its header claimsĐang mởbug sev-5 vm
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
area:jobads-cv bug FE mvp P3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
klasolsson81/jobbliggaren#2271 ·
Maintainer thường phản hồi trong vòng 1 ngày