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

belindas-closet-android_4_235_edit-option-visiblity #236

Merged
merged 3 commits into from
Dec 8, 2023

Conversation

intisarosman1
Copy link
Contributor

@intisarosman1 intisarosman1 commented Dec 7, 2023

Resolves #235

This PR makes it so that the edit option (pencil icon on Product Details page and Individual Products page) is only available to admins and creators and not to users without the appropriate role or users that are signed out. They will not be able to have access to editing options or altering the products listed.

Related to User Story #163

@intisarosman1 intisarosman1 marked this pull request as ready for review December 7, 2023 11:27
Copy link
Contributor

@taylorpapke taylorpapke left a comment

Choose a reason for hiding this comment

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

Awesome work! When user with admin and creator roles are signed in, The edit button appears on both the IndividualProduct.kt and the ProductDetail.kt.

When not signed in (or signed in with user role), the edit button does not appear on the IndividualProduct.kt and ProductDetail.kt.

@brinkbrink brinkbrink merged commit facfc42 into main Dec 8, 2023
1 check passed
@brinkbrink brinkbrink deleted the feature-235-edit-option-visibility-01 branch December 8, 2023 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Sprint 4
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Edit Options Only Visible to Admin/Creator: Edit Option Visibility
3 participants