[rest] Updating device dict should not check for global user permission.

Instead it should check whether the user has change permission over the
said device.
16 jobs for rest-device-dict-perm in 19 minutes and 16 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Test
passed #121375
amd64
dispatcher-debian-10

00:03:04

passed #121377
amd64
dispatcher-debian-11

00:03:23

passed #121376
amd64
server-debian-10

00:03:55

passed #121378
amd64
server-debian-11

00:06:39

 
  Analyze
passed #121379
amd64-dind
bandit-sast

00:01:29

passed #121380
amd64
black

00:01:08

passed #121381
amd64
code_quality

00:00:49

passed #121386
amd64
codespell

00:00:23

passed #121382
amd64
coverage

00:08:35

60.97%
passed #121383
amd64
dockerfiles

00:00:45

passed #121385
amd64
pylint

00:03:59

passed #121384
amd64
schemas

00:01:00

 
  Build
passed #121388
amd64
debian/10

00:01:47

passed #121387
amd64
doc

00:00:36

passed #121389
amd64-dind
docker-amd64-dispatcher

00:01:58

passed #121390
amd64-dind
docker-amd64-server

00:02:48