Fixed issue #449 (Resources remain available even in maintenance mode).
Merge pull request #834 from martynas-wm/v1.5.6

Fixed issue #449 (Resources remain available even in maintenance mode).