mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
createdBy fields added
This commit is contained in:
@@ -57,7 +57,7 @@ class LecturerPolicy extends BasePolicy
|
||||
*/
|
||||
public function update(User $user, Lecturer $lecturer)
|
||||
{
|
||||
return $user->belongsToTeam($lecturer->team);
|
||||
return $lecturer->created_by === $user->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user