WebSubmit: fix access restrictions in /uploadfile

* Takes into account the 'categ' parameter when checking if a user
  is allowed to upload files. (closes #1703)

Signed-off-by: Ludmila Marian <ludmila.marian@gmail.com>