芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/vendor/laravel/jetstream/stubs/app/Policies/TeamPolicy.php
belongsToTeam($team); } /** * Determine whether the user can create models. * * @param \App\Models\User $user * @return mixed */ public function create(User $user) { return true; } /** * Determine whether the user can update the model. * * @param \App\Models\User $user * @param \App\Models\Team $team * @return mixed */ public function update(User $user, Team $team) { return $user->ownsTeam($team); } /** * Determine whether the user can add team members. * * @param \App\Models\User $user * @param \App\Models\Team $team * @return mixed */ public function addTeamMember(User $user, Team $team) { return $user->ownsTeam($team); } /** * Determine whether the user can update team member permissions. * * @param \App\Models\User $user * @param \App\Models\Team $team * @return mixed */ public function updateTeamMember(User $user, Team $team) { return $user->ownsTeam($team); } /** * Determine whether the user can remove team members. * * @param \App\Models\User $user * @param \App\Models\Team $team * @return mixed */ public function removeTeamMember(User $user, Team $team) { return $user->ownsTeam($team); } /** * Determine whether the user can delete the model. * * @param \App\Models\User $user * @param \App\Models\Team $team * @return mixed */ public function delete(User $user, Team $team) { return $user->ownsTeam($team); } }