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()
|
protected function gate()
|
||||||
{
|
{
|
||||||
Gate::define('viewNova', function ($user) {
|
Gate::define('viewNova', function ($user) {
|
||||||
return in_array($user->email, [
|
return $user->is_lecturer;
|
||||||
'admin@einundzwanzig.space'
|
|
||||||
]);
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user