mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
permissions created
This commit is contained in:
@@ -55,7 +55,7 @@ class CourseEventPolicy extends BasePolicy
|
||||
*/
|
||||
public function update(User $user, CourseEvent $courseEvent)
|
||||
{
|
||||
return $user->belongsToTeam($courseEvent->course->lecturer->team);
|
||||
return $user->belongsToTeam($courseEvent->course->lecturer->team) || $user->can((new \ReflectionClass($this))->getShortName().'.'.__FUNCTION__);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user