CDB-3103 Bugfix regarding permissions