Skip to content

"Add Sketch" option visible to guest users on other users collections #4148

@msawired

Description

@msawired

p5.js version

No response

What is your operating system?

Mac OS

Web browser and version

Safari 26.5

Actual Behavior

It is possible to view other users collections via their public URL: https://editor.p5js.org/msawired/collections but as a rule, it is not possible to submit a sketch to collections if user is not the collection owner. However, "Add Sketch" still shows up for guest users. Furthermore, it opens up the sketch list modal and allows user to select a sketch. Ajax call fails with 403 (as expected) but no response is displayed to the user.

Image

Expected Behavior

"Add Sketch" option and modal should not be displayed to guest users until this feature is supported.

Steps to reproduce

Steps:

  1. Login to Editor
  2. View another users collection page such as mine
  3. Click the caret and select "Add Sketch"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Awaiting Maintainer ApprovalNeeds review from a maintainer before moving forwardBugError or unexpected behaviors

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions