Made second parameter optional in Factory method (interface change).
Reverted escaping user content in Contact module, but updated the variables to reflect they are mysql un-safe. Stock module now has a concept of "supply groups", meaning each user can supply to only specific groups in an organisation. The groups are selected via the "Manage Users" dialog and changes have also been made to the Account module to allow this to happen. The dialog was updated at the same time to allow users with permission to update the details of other users in their organisation, including which group they are in.
Showing with 677 additions and 291 deletions