Fixed bug where project permissions being used in place of dataset
permissions