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,8 +57,7 @@ class VenuePolicy extends BasePolicy
|
||||
*/
|
||||
public function update(User $user, Venue $venue)
|
||||
{
|
||||
return $venue->lecturers->where('team_id', $user->current_team_id)
|
||||
->isNotEmpty();
|
||||
return $venue->created_by === $user->id;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user