Unverified Commit 14ab0e22 authored by M Bernt's avatar M Bernt Committed by GitHub
Browse files

Raise exception for unauthenicated users

parent 4b7afea7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -204,7 +204,7 @@ class UsersService(ServiceBase):
    ) -> List[MaybeLimitedUserModel]:
        # never give any info to non-authenticated users
        if not trans.user:
            return []
            raise glx_exceptions.AuthenticationRequired("Only registered users can view the list of users")

        # check for early return conditions
        if deleted: