Fixed DBPermissionManager.isValidSession() for end-users