Fix proposal to prevent an agent to run a deployment task if not allowed to.

Fix for issue : http://forge.fusioninventory.org/issues/2557

discussed here : http://forum.fusioninventory.org/viewtopic.php?pid=15416#p15416