Document Repository permissions revamp

This needs to be UPDATE. Mistake.