Skip to content

Commit

Permalink
Make the requested permissions show up as defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
bodintsov committed Jan 7, 2025
1 parent 4611112 commit 170a457
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 170a457

Please sign in to comment.