Skip to content

Enforce role-based access control for Update Project Config #272

Description

@hackerwins

Description:

With the introduction of Members in the Dashboard, project roles now include Owner, Admin, and Member. The Update Project Config feature should follow the role-based permission model.

Currently, members can update project settings. This issue aims to restrict that behavior so that Members have read-only access, while Owners and Admins can modify settings.

Both Dashboard UI and Admin API changes are required to enforce this consistently.

Action Owner Admin Member
Delete project
Update project config
Invite members
Remove members
Change roles
Read / write documents

Tasks

  • UI (Dashboard)
    • Disable Project Config editing for Member role
    • Show config in read-only mode
  • API (Admin)
    • Restrict Update Project Config API to Owner and Admin
    • Return proper authorization error for Member requests

Related to yorkie-team/yorkie#969

Why:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions