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

Network Manager View Permissions on Opportunity Details #380

Merged
merged 7 commits into from
Sep 18, 2024

Conversation

pxwxnvermx
Copy link
Contributor

@pxwxnvermx pxwxnvermx commented Aug 15, 2024

Ticket

  • Removed opportunity verification flag config page for Network Managers
  • Added User Invite only page for Network Managers

Network Manager View:
image

image

Program Manager View:
image

Copy link
Collaborator

@calellowitz calellowitz left a comment

Choose a reason for hiding this comment

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

Do you have screenshots? Otherwise looks good pending the questions for my own understanding

@@ -61,13 +70,15 @@ <h1 class="mb-0">{{ object.name }}</h1>
</a>
</li>
{% endif %}
{% if not object.managed or request.org != object.organization %}
Copy link
Collaborator

Choose a reason for hiding this comment

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

what does the second part do? why is it look for orgs that are not the opportunity's org?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I fixed this and made the permissions a little more verbose. 77209bd

def opportunity_user_invite(request, org_slug=None, pk=None):
opportunity = get_object_or_404(Opportunity, organization=request.org, id=pk)
form = OpportunityUserInviteForm(data=request.POST or None)
if form.is_valid():
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this part shared with the other invite view? May be nice to create a shared function

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed. I have made some changes to make the forms inherit functionality. 516e6c9

Copy link
Collaborator

@calellowitz calellowitz left a comment

Choose a reason for hiding this comment

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

Still curious about shared functionality but not blocking

Base automatically changed from hy/network-manager-invite-and-claim to hy/managed-opportunity-creation September 18, 2024 06:53
Base automatically changed from hy/managed-opportunity-creation to main September 18, 2024 06:54
@pxwxnvermx pxwxnvermx merged commit cf92ff5 into main Sep 18, 2024
2 checks passed
@pxwxnvermx pxwxnvermx deleted the pkv/network-manager-view branch September 18, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants