mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
nova updates
This commit is contained in:
@@ -30,7 +30,7 @@ class CoursePolicy
|
||||
*/
|
||||
public function view(User $user, Course $course)
|
||||
{
|
||||
//
|
||||
return $user->is_lecturer;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -41,7 +41,7 @@ class CoursePolicy
|
||||
*/
|
||||
public function create(User $user)
|
||||
{
|
||||
//
|
||||
return $user->is_lecturer;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -53,7 +53,7 @@ class CoursePolicy
|
||||
*/
|
||||
public function update(User $user, Course $course)
|
||||
{
|
||||
//
|
||||
return $user->belongsToTeam($course->lecturer->team);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user