Nova update

This commit is contained in:
Benjamin Takats
2022-12-04 14:09:03 +01:00
parent 0581d00c3e
commit 7e5475312c
3 changed files with 4 additions and 4 deletions

View File

@@ -37,7 +37,7 @@ class Lecturer extends Resource
public static function relatableTeams(NovaRequest $request, $query, Field $field)
{
if ($field instanceof BelongsTo) {
if ($field instanceof BelongsTo && !$request->user()->hasRole('super-admin')) {
$query->where('id', $request->user()->current_team_id);
}

View File

@@ -149,7 +149,7 @@
"Service Unavailable": "Service nicht verfügbar",
"Setup Key": "Einrichtungsschlüssel",
"Show Recovery Codes": "Zeige die Wiederherstellungscodes",
"Showing": "Zeigen",
"Showing": "Zeige",
"Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost.": "Speichern Sie diese Wiederherstellungscodes in einem sicheren Passwortmanager. Sie können verwendet werden, um den Zugriff auf Ihr Konto wiederherzustellen, wenn Ihr Zwei-Faktor-Authentifizierungsgerät verloren geht.",
"Switch Teams": "Teams wechseln",
"Team Details": "Teamdetails",

View File

@@ -135,7 +135,7 @@
"Service Unavailable": "Service nicht verfügbar",
"Setup Key": "Setup Key",
"Show Recovery Codes": "Zeige die Wiederherstellungscodes",
"Showing": "Zeigen",
"Showing": "Zeige",
"Store these recovery codes in a secure password manager. They can be used to recover access to your account if your two factor authentication device is lost.": "Speichern Sie diese Wiederherstellungscodes in einem sicheren Passwortmanager. Sie können verwendet werden, um den Zugriff auf Ihr Konto wiederherzustellen, wenn Ihr Zwei-Faktor-Authentifizierungsgerät verloren geht.",
"Switch Teams": "Teams wechseln",
"Team Details": "Teamdetails",
@@ -202,4 +202,4 @@
"You may not delete your personal team.": "Sie können Ihr persönliches Team nicht löschen.",
"You may not leave a team that you created.": "Sie können ein von Ihnen erstelltes Team nicht verlassen.",
"Your email address is unverified.": "Your email address is unverified."
}
}