-
Notifications
You must be signed in to change notification settings - Fork 86
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
Config options added to make EULA process more thorough #550
base: main
Are you sure you want to change the base?
Conversation
… show up on allocation detail page
if EULA_AGREEMENT: | ||
allocation_user_pending_status_choice = AllocationUserStatusChoice.objects.get(name='Pending') | ||
|
||
allocation_user_status = get_object_or_404(AllocationUser, allocation=allocation_obj, user=self.request.user).status |
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.
This should check all users on an allocation and only show the ability to accept/deny EULA to the relevant user. As is, this breaks views where the user is not a member of the allocation (e.g. an admin/staff view looking to approve/deny the allocation)
We're looking at making similar changes. I'll try to add fixes / updates as we get to them (no eta at this point.) Right now, this PR is not completely functional (at least for us):
|
Resolves issue #542 — Now, centers who want to have a more thorough process for users on allocations whose resources have a 'eula' attribute can set the config variable
EULA_AGREEMENT
to True. With this, when a user is added to an allocation with a EULA resource, any user that is added (who is not an admin or a PI) has a status ofPending
instead ofActive
. When this user goes to access the resource, they must either accept or decline the EULA. If they accept, they become anActive
user on the allocation. However, if they decline, their status is set toDeclined
.In addition, when a user is added to an allocation with a EULA resource, they receive an email asking them to complete the EULA. When a user agrees to the EULA, an email is sent to the user and their manager to confirm this process. If the config variable
EMAIL_EULA_REMINDERS
is set to True, users are emailed weekly to remind them to complete their EULA process.