Minor - fixing doble weight.
Blocking access if work is not active see BT#8773
Minor - format code.