-
Notifications
You must be signed in to change notification settings - Fork 21
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
add feature to enable email to admins to whitelist helpful links #728
base: main
Are you sure you want to change the base?
Conversation
23b94a2
to
41020c8
Compare
41020c8
to
00e6c49
Compare
|
||
func newAllowlistRequest(user *models.User, link *models.HelpfulLink) *emailReq { | ||
reqTime := time.Now().Format("2006-01-02 15:04:05") | ||
emailStr := `A new Helpful Link has been added to the UnlockEd system by an Administrator. |
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.
@PThorpe92 Should the message in the emailStr match the html version?
I modified the message for grammar. Can you have it say?
An Administrator has added a new Helpful Link to the UnlockEd system and requests your review to confirm it is allow-listed for all users.
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.
Left one comment on the message body and pushed one change for the helpful link layout.
with the following tooltip:
![image](https://private-user-images.githubusercontent.com/121899304/410668957-0b17c85b-6274-43e7-8f96-52957743155c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk2MTE2MDUsIm5iZiI6MTczOTYxMTMwNSwicGF0aCI6Ii8xMjE4OTkzMDQvNDEwNjY4OTU3LTBiMTdjODViLTYyNzQtNDNlNy04Zjk2LTUyOTU3NzQzMTU1Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjE1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxNVQwOTIxNDVaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xOGRjNDI0ZmQwYzUyNWNkNzkwOTRjZDQ3ZTIzM2EzYjQzMDNmOWEzMGY1ZTA4ZTA3YmIwMGVlYzMzNGFkN2E3JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.oDT7OsBtpgNZ2MgwcG4g5F8Feqvy9GATmkCoZQiwTyM)
This Pr adds the ability for an admin to request that an email be sent to the network admin
It also adds the
email
form back to the New User form, but only when its an admin user being created. this is so we are able to use their email for reference in the request sent to the domain admin for whitelisting.