🩺 Praxis System
DE ES
<% const role = user?.role || null; const canDoctorAndStaff = role === "arzt" || role === "mitarbeiter"; const canOnlyAdmin = role === "admin"; function hrefIfAllowed(allowed, href) { return allowed ? href : "#"; } function lockClass(allowed) { return allowed ? "" : "locked"; } // Nachricht je Berechtigungsgruppe function lockMsg(allowed, requiredRole) { if (allowed) return ""; if (requiredRole === "admin") return "Kein Zugriff – nur für Administratoren"; return "Kein Zugriff – nur für Ärzte und Mitarbeiter"; } %> data-locked="<%= lockMsg(canDoctorAndStaff, 'arzt') %>"<% } %> > <%= t.sidebar.patients %> <% if (!canDoctorAndStaff) { %> <% } %> data-locked="<%= lockMsg(canDoctorAndStaff, 'arzt') %>"<% } %> > Kalender <% if (!canDoctorAndStaff) { %> <% } %> data-locked="<%= lockMsg(canDoctorAndStaff, 'arzt') %>"<% } %> > <%= t.sidebar.medications %> <% if (!canDoctorAndStaff) { %> <% } %> data-locked="<%= lockMsg(canDoctorAndStaff, 'arzt') %>"<% } %> > <%= t.sidebar.servicesOpen %> <% if (!canDoctorAndStaff) { %> <% } %> data-locked="<%= lockMsg(canDoctorAndStaff, 'arzt') %>"<% } %> > <%= t.sidebar.billing %> <% if (!canDoctorAndStaff) { %> <% } %> data-locked="<%= lockMsg(canOnlyAdmin, 'admin') %>"<% } %> > <%= t.sidebar.admin %> <% if (!canOnlyAdmin) { %> <% } %>
<%= t.sidebar.logout %>
Kein Zugriff