mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Nova restriction for lecturers
This commit is contained in:
@@ -124,9 +124,7 @@ class NovaServiceProvider extends NovaApplicationServiceProvider
|
||||
protected function gate()
|
||||
{
|
||||
Gate::define('viewNova', function ($user) {
|
||||
return in_array($user->email, [
|
||||
'admin@einundzwanzig.space'
|
||||
]);
|
||||
return $user->is_lecturer;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user