This reverts commit 338d067aba.
338d067aba
fixes #7788
All assertPermission() calls must throw this exception.