From 6d97425a79e43c42321d7be1fcb94e9e39572abc Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Wed, 8 Jan 2025 11:59:56 +0100 Subject: [PATCH] guest-check-in: remove outdated frontend role check The new role has been available in the backend for a long time now --- src/dbp-guest-check-in.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/dbp-guest-check-in.js b/src/dbp-guest-check-in.js index 4be31f2..c5c6ac9 100644 --- a/src/dbp-guest-check-in.js +++ b/src/dbp-guest-check-in.js @@ -288,9 +288,6 @@ class GuestCheckIn extends ScopedElementsMixin(DBPCheckInLitElement) { hasPermissions() { if (!this.auth.person || !Array.isArray(this.auth.person.roles)) return false; - // For backwards compat, remove once the backend is new enough - if (this.auth.person.roles.includes('ROLE_STAFF')) return true; - if (this.auth.person.roles.includes('ROLE_SCOPE_LOCATION-CHECK-IN-GUEST')) return true; return false;