Fixed bug in policy function for activate/deactivate deployment
Merge pull request #2101 from mmeisinger/fix1856_deployui_r2

OOIION-1856: Fixed bug in policy function for activate/deactivate deployment