fix #408: fixes check if user is delegate