Implemented permissions around the workmode selected
Fix testing with new permissions system by workmode