-
Notifications
You must be signed in to change notification settings - Fork 1
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
Conversation
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.
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 %} |
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.
what does the second part do? why is it look for orgs that are not the opportunity's org?
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 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(): |
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.
Is this part shared with the other invite view? May be nice to create a shared function
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.
Fixed. I have made some changes to make the forms inherit functionality. 516e6c9
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.
Still curious about shared functionality but not blocking
Ticket
Network Manager View:
Program Manager View: