Skip to content

A WRITE collaborator can downgrade or remove the owner's access to a dataset or model #8889

Closed

Description

@tanishqgandhi1908

What happened?

Anyone with WRITE access to a dataset or model can change the owner's own access. The server only checks that the caller has write access, not whether the target is the owner.

Sharing the resource with the owner's email as READ succeeds. The owner then gets read-only controls on their own dataset or model: no Settings tab, no upload panel, no file delete buttons.
Revoking the owner's access (DELETE /api/access/dataset/revoke/{did}/{ownerEmail}, same for model) also succeeds, and the resource disappears from the owner's Datasets/Models list and search.

Expected: changing or revoking the owner's access is refused, as it already is for workflows ("You cannot modify the owner's permissions!").

The owner's dataset before:

Image

The collaborator shares it with the owner as READ:

Image Image

The owner's dataset afterwards: Settings tab, delete button and upload panel are gone:

Image

How to reproduce?

  1. User A creates a dataset and shares it with user B as WRITE.
  2. B opens Datasets → Share on that dataset, enters A's email, picks "read", and clicks Share. It succeeds.
  3. A opens the dataset → "Versions & Files": the Settings tab, upload panel and file delete buttons are gone.

The same steps work on a model.

Version/Branch

1.4.0-incubating-SNAPSHOT (main)

Commit Hash (Optional)

No response

What browsers are you seeing the problem on?

No response

Relevant log output

Activity

  1. tanishqgandhi1908 commented on Oct 7, 2026

    @tanishqgandhi1908
    ContributorAuthor

    /take

  2. added a commit that references this issue on Oct 27, 2026
    bc4f3c8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions