Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(web): disable metadata edit if user is not owner #5415

Merged
merged 6 commits into from
Dec 1, 2023

Conversation

martabal
Copy link
Member

Changes made in this PR

Currently, anyone can edit asset metadata, but API requests fail due to incorrect permissions. This PR hides the edit button if the user is not the asset owner.

@alextran1502
Copy link
Contributor

alextran1502 commented Nov 30, 2023

I think you can access the PageData data, which has user property in it with the syntax below in the component

<script>
import { page } from "$app/stores"
$page.data;
</script>

@alextran1502 alextran1502 merged commit ec92608 into main Dec 1, 2023
18 checks passed
@alextran1502 alextran1502 deleted the fix/web-metadata-edit-user-not-owner branch December 1, 2023 20:58
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.

None yet

3 participants