fix(endpoints/api/robot.py): fix missnamed attribute
Issue:NA - [ ] It works! - [ ] Comments provide sufficient explanations for the next contributor - [ ] Tests cover changes and corner cases - [ ] Follows Quay syntax patterns and format
This commit is contained in:
parent
044036ff4d
commit
36e58e3bd0
2 changed files with 4 additions and 4 deletions
|
@ -143,7 +143,7 @@ class UserRobotPermissions(ApiResource):
|
|||
""" Returns the list of repository permissions for the user's robot. """
|
||||
parent = get_authenticated_user()
|
||||
robot = model.get_user_robot(robot_shortname, parent)
|
||||
permissions = model.list_robot_permissions(robot.username)
|
||||
permissions = model.list_robot_permissions(robot.name)
|
||||
|
||||
return {
|
||||
'permissions': [permission.to_dict() for permission in permissions]
|
||||
|
@ -165,7 +165,7 @@ class OrgRobotPermissions(ApiResource):
|
|||
permission = AdministerOrganizationPermission(orgname)
|
||||
if permission.can():
|
||||
robot = model.get_org_robot(robot_shortname, orgname)
|
||||
permissions = model.list_robot_permissions(robot.username)
|
||||
permissions = model.list_robot_permissions(robot.name)
|
||||
|
||||
return {
|
||||
'permissions': [permission.to_dict() for permission in permissions]
|
||||
|
|
Reference in a new issue