Verified Commit 7315e0cc authored by Peter Stanko's avatar Peter Stanko
Browse files

Curren user is returning a user not a client

parent 448d73d8
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -126,8 +126,7 @@ class AuthService:
            throws(bool): Throws an exception if the token is not valid
        Returns(Bool):
        """
        client = self._gitlab.current_user(token=token)
        user = client.user
        user = self._gitlab.current_user(token=token)
        if not user or user.username != username:
            if throws:
                log_auth_w(f"Login: gitlab authorization failed for - {username}")