Skip to content

Commit

Permalink
guest-check-in: remove outdated frontend role check
Browse files Browse the repository at this point in the history
The new role has been available in the backend for a long time now
  • Loading branch information
lazka committed Jan 8, 2025
1 parent 7985776 commit 6d97425
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/dbp-guest-check-in.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6d97425

Please sign in to comment.