[Core] Fix: Permissions stores one user id multiple times.
[Applications] Fix: Applications are not displayed although permissions are set.
Merge branch 'hotfix/0.10.2'