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

[UI] Ensure unpublished assets cannot be accessed anonymously #248

Merged

Conversation

Zachary-Fernandes
Copy link
Contributor

Added if check to redirect users to a 404 page if the asset they
attempt to access is unpublished and the user is anonymous.

Resolves #207

@ckadner

Added if check to redirect users to a 404 page if the asset they
attempt to access is unpublished and the user is anonymous.

Resolves machine-learning-exchange#207

Signed-off-by: Zachary-Fernandes <[email protected]>
@ckadner ckadner requested review from drewbutlerbb4 and ckadner and removed request for yhwang and animeshsingh October 27, 2021 18:54
@ckadner ckadner self-assigned this Oct 27, 2021
Copy link
Member

@ckadner ckadner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Zach. Looks good. Please remove the debug message

dashboard/origin-mlx/src/pages/MetaDetailPage.tsx Outdated Show resolved Hide resolved
Signed-off-by: Zachary-Fernandes <[email protected]>
@mlx-bot
Copy link
Collaborator

mlx-bot commented Oct 27, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: ckadner, Zachary-Fernandes

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@drewbutlerbb4
Copy link
Contributor

Thanks @Zachary-Fernandes
/lgtm

@mlx-bot mlx-bot added the lgtm label Oct 27, 2021
@mlx-bot mlx-bot merged commit 34c3ba3 into machine-learning-exchange:main Oct 27, 2021
@ckadner ckadner added the RCOS Potential work items for RCOS student interns label Dec 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved lgtm RCOS Potential work items for RCOS student interns
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[UI] Unpublished assets should not be accessible anonymously
4 participants