fix(test): fixed test and pull api endpoint. Fixes: RCCE-29
This commit is contained in:
parent
9174592ab3
commit
15bf624134
2 changed files with 5 additions and 1 deletions
|
|
@ -2273,6 +2273,7 @@ def pull(request, apiuser, repoid, remote_uri=Optional(None), sync_large_objects
|
|||
repo = get_repo_or_error(repoid)
|
||||
remote_uri = Optional.extract(remote_uri)
|
||||
remote_uri_display = remote_uri or repo.clone_uri_hidden
|
||||
sync_large_objects = Optional.extract(sync_large_objects)
|
||||
if not has_superadmin_permission(apiuser):
|
||||
_perms = ('repository.admin',)
|
||||
validate_repo_permissions(apiuser, repoid, repo, _perms)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue