Fix bug that allow anonymous users to access datasets without allowed users