Bring back checkUidPermission