Add get_mode to quota system
Merge pull request #4505 from techhat/quota

Add get_mode to quota system