mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Nova update
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user