fix(api): fix manager access to templates of their category
fix(api): fix manager access to templates of their category

ERROR:api:Exception on /api/v3/desktop [POST]
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 2070, in wsgi_app
    response = self.full_dispatch_request()
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 1515, in full_dispatch_request
    rv = self.handle_user_exception(e)
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 1513, in full_dispatch_request
    rv = self.dispatch_request()
  File "/usr/lib/python3.8/site-packages/flask/app.py", line 1499, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
  File "/api/api/views/decorators.py", line 41, in decorated
    return f(*args, **kwargs)
  File "/api/api/views/DesktopsNonPersistentView.py", line 62, in api_v3_desktop_new
    if not allowedTemplateId(payload, template_id):
  File "/api/api/views/decorators.py", line 168, in allowedTemplateId
    and payload["category_id"] == template["category"]
KeyError: 'category'

isard-vdi/isard,isard-vdi/isard,isard-vdi/isard,isard-vdi/isard,isard-vdi/isard