Skip to content

Commit

Permalink
Merge pull request #10891 from bodintsov/feature/changed_to_legacy_co…
Browse files Browse the repository at this point in the history
…ntributor_page

[ENG-6670] Make the requested permissions show up as defaults
  • Loading branch information
brianjgeiger authored Jan 8, 2025
2 parents d34ceb8 + 06e7198 commit d5138e0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions website/profile/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ def serialize_access_requests(node):
{
'user': serialize_user(access_request.creator),
'comment': access_request.comment,
'requested_permissions': access_request.requested_permissions,
'id': access_request._id
} for access_request in node.requests.filter(
request_type=workflows.RequestTypes.ACCESS.value,
Expand Down
2 changes: 1 addition & 1 deletion website/templates/project/contributors.mako
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@
<div class="td-content" data-bind="visible: !$root.collapsed() || accessRequest.expanded()">
<select class="form-control input-sm" data-bind="
options: $parents[0].permissionList,
value: permission,
value: requested_permissions,
optionsText: optionsText.bind(permission)"
>
</select>
Expand Down

0 comments on commit d5138e0

Please sign in to comment.