-
Notifications
You must be signed in to change notification settings - Fork 4
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
Feature/19 gspc admin page #505
Conversation
…to feature/19-gspc-admin-page
.env_example
Outdated
@@ -60,7 +60,7 @@ DB_URI="postgres://postgres:postgres@localhost:5432/postgres" | |||
# | |||
# Deployment TL;DR: Set this in the app's environment variables. | |||
|
|||
BASE_URL="https://training.smartpay.gsa.gov" | |||
BASE_URL="http://localhost:3000" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Believe this can be reverted as it list to update in the deploy instructions in the readme.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted
@@ -33,7 +33,7 @@ const pageTitle = "Admin Panel"; | |||
</div> | |||
</div> | |||
</li> | |||
<li class="usa-card tablet:grid-col-6"> | |||
<!-- <li class="usa-card tablet:grid-col-6"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be commented out? How will the admin access the page?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They want it removed for this deployment
async def gspc_admin_invite( | ||
gspcInvite: GspcInvite, | ||
repo: GspcInviteRepository = Depends(gspc_invite_repository), | ||
user=Depends(RequireRole(["Admin"])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you are missing the Authorization header in the request on the vue component. Can you check to see if the user authorization is happening?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added, nice spot. I still need dataset for my local to get the admin role
training/schemas/gspc_invite.py
Outdated
raise ValueError("Certification expiration date cannot be in the past") | ||
return value | ||
|
||
# def __init__(self, email_addresses, certification_expiration_date): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove commented out code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
#19