Skip to content

Hide Add Sketch option for non-owners of collections#4169

Open
Riddh1ma wants to merge 1 commit into
processing:developfrom
Riddh1ma:fix-4148-hide-add-sketch-for-non-owners
Open

Hide Add Sketch option for non-owners of collections#4169
Riddh1ma wants to merge 1 commit into
processing:developfrom
Riddh1ma:fix-4148-hide-add-sketch-for-non-owners

Conversation

@Riddh1ma

@Riddh1ma Riddh1ma commented Jun 8, 2026

Copy link
Copy Markdown

Summary
Fixes #4148 by hiding the "Add Sketch" option in the collection dropdown for users who do not own the collection.

Changes

  • Added the same ownership check used by Rename and Delete actions to the Add Sketch menu item.
  • Non-owners no longer see the Add Sketch option in collection action menus.

Testing

  • Verified collection owners can still access the Add Sketch option.
  • Verified the Add Sketch menu item now respects the userIsOwner condition.

Fixes #4148

I have verified that this pull request:

  • has no linting errors (npm run lint)
  • has no test errors (npm run test)
  • has no typecheck errors (npm run typecheck)
  • is from a uniquely-named feature branch and is up to date with the develop branch.
  • is descriptively named and links to an issue number, i.e. Fixes #123
  • meets the standards outlined in the accessibility guidelines

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant