Commit 8b075bbd authored by Rob Carleski's avatar Rob Carleski
Browse files

Modify list method of userprojectmanager

parent 85ac1020
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -236,8 +236,11 @@ class UserProjectManager(ListMixin, CreateMixin, RESTManager):
            GitlabAuthenticationError: If authentication is not correct
            GitlabListError: If the server cannot perform the request
        """

        if self._parent is not None:
            path = '/users/%s/projects' % self._parent.id
        else:
            path = '/users/%s/projects' % kwargs['user_id']

        return ListMixin.list(self, path=path, **kwargs)