mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
Remove redundant typing from DocBlocks
This commit is contained in:
committed by
HolgerHatGarKeineNode
parent
98a430c91c
commit
f1905d548d
@@ -9,8 +9,6 @@ class BasePolicy
|
||||
/**
|
||||
* Perform pre-authorization checks.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param string $ability
|
||||
* @return void|bool
|
||||
*/
|
||||
public function before(User $user, string $ability)
|
||||
|
||||
@@ -13,7 +13,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BitcoinEvent $bitcoinEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, BitcoinEvent $bitcoinEvent): bool
|
||||
@@ -36,7 +33,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BitcoinEvent $bitcoinEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, BitcoinEvent $bitcoinEvent): bool
|
||||
@@ -59,8 +53,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BitcoinEvent $bitcoinEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, BitcoinEvent $bitcoinEvent): bool
|
||||
@@ -71,8 +63,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BitcoinEvent $bitcoinEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, BitcoinEvent $bitcoinEvent): bool
|
||||
@@ -83,8 +73,6 @@ class BitcoinEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BitcoinEvent $bitcoinEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, BitcoinEvent $bitcoinEvent): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BookCase $bookCase
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, BookCase $bookCase): bool
|
||||
@@ -36,7 +33,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BookCase $bookCase
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, BookCase $bookCase): bool
|
||||
@@ -59,8 +53,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BookCase $bookCase
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, BookCase $bookCase): bool
|
||||
@@ -71,8 +63,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BookCase $bookCase
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, BookCase $bookCase): bool
|
||||
@@ -83,8 +73,6 @@ class BookCasePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\BookCase $bookCase
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, BookCase $bookCase): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Category $category
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Category $category): bool
|
||||
@@ -36,7 +33,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Category $category
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Category $category): bool
|
||||
@@ -59,8 +53,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Category $category
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Category $category): bool
|
||||
@@ -71,8 +63,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Category $category
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Category $category): bool
|
||||
@@ -83,8 +73,6 @@ class CategoryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Category $category
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Category $category): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\City $city
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, City $city): bool
|
||||
@@ -36,7 +33,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\City $city
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, City $city): bool
|
||||
@@ -59,8 +53,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\City $city
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, City $city): bool
|
||||
@@ -71,8 +63,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\City $city
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, City $city): bool
|
||||
@@ -83,8 +73,6 @@ class CityPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\City $city
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, City $city): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Country $country
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Country $country): bool
|
||||
@@ -36,7 +33,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Country $country
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Country $country): bool
|
||||
@@ -59,8 +53,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Country $country
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Country $country): bool
|
||||
@@ -71,8 +63,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Country $country
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Country $country): bool
|
||||
@@ -83,8 +73,6 @@ class CountryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Country $country
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Country $country): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\CourseEvent $courseEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, CourseEvent $courseEvent): bool
|
||||
@@ -36,7 +33,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\CourseEvent $courseEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, CourseEvent $courseEvent): bool
|
||||
@@ -59,8 +53,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\CourseEvent $courseEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, CourseEvent $courseEvent): bool
|
||||
@@ -71,8 +63,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\CourseEvent $courseEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, CourseEvent $courseEvent): bool
|
||||
@@ -83,8 +73,6 @@ class CourseEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\CourseEvent $courseEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, CourseEvent $courseEvent): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Course $course
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Course $course): bool
|
||||
@@ -36,7 +33,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Course $course
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Course $course): bool
|
||||
@@ -59,8 +53,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Course $course
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Course $course): bool
|
||||
@@ -71,8 +63,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Course $course
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Course $course): bool
|
||||
@@ -83,8 +73,6 @@ class CoursePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Course $course
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Course $course): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Episode $episode
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Episode $episode): bool
|
||||
@@ -36,7 +33,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Episode $episode
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Episode $episode): bool
|
||||
@@ -59,8 +53,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Episode $episode
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Episode $episode): bool
|
||||
@@ -71,8 +63,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Episode $episode
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Episode $episode): bool
|
||||
@@ -83,8 +73,6 @@ class EpisodePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Episode $episode
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Episode $episode): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Lecturer $lecturer
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Lecturer $lecturer): bool
|
||||
@@ -36,7 +33,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Lecturer $lecturer
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Lecturer $lecturer): bool
|
||||
@@ -59,8 +53,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Lecturer $lecturer
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Lecturer $lecturer): bool
|
||||
@@ -71,8 +63,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Lecturer $lecturer
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Lecturer $lecturer): bool
|
||||
@@ -83,8 +73,6 @@ class LecturerPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Lecturer $lecturer
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Lecturer $lecturer): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\LibraryItem $libraryItem
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, LibraryItem $libraryItem): bool
|
||||
@@ -36,7 +33,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\LibraryItem $libraryItem
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, LibraryItem $libraryItem): bool
|
||||
@@ -59,8 +53,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\LibraryItem $libraryItem
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, LibraryItem $libraryItem): bool
|
||||
@@ -71,8 +63,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\LibraryItem $libraryItem
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, LibraryItem $libraryItem): bool
|
||||
@@ -83,8 +73,6 @@ class LibraryItemPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\LibraryItem $libraryItem
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, LibraryItem $libraryItem): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Library $library
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Library $library): bool
|
||||
@@ -36,7 +33,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -49,8 +45,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Library $library
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Library $library): bool
|
||||
@@ -61,8 +55,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Library $library
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Library $library): bool
|
||||
@@ -73,8 +65,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Library $library
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Library $library): bool
|
||||
@@ -85,8 +75,6 @@ class LibraryPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Library $library
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Library $library): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\MeetupEvent $meetupEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, MeetupEvent $meetupEvent): bool
|
||||
@@ -36,7 +33,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\MeetupEvent $meetupEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, MeetupEvent $meetupEvent): bool
|
||||
@@ -59,8 +53,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\MeetupEvent $meetupEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, MeetupEvent $meetupEvent): bool
|
||||
@@ -71,8 +63,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\MeetupEvent $meetupEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, MeetupEvent $meetupEvent): bool
|
||||
@@ -83,8 +73,6 @@ class MeetupEventPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\MeetupEvent $meetupEvent
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, MeetupEvent $meetupEvent): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Meetup $meetup
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Meetup $meetup): bool
|
||||
@@ -36,7 +33,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Meetup $meetup
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Meetup $meetup): bool
|
||||
@@ -59,8 +53,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Meetup $meetup
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Meetup $meetup): bool
|
||||
@@ -71,8 +63,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Meetup $meetup
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Meetup $meetup): bool
|
||||
@@ -83,8 +73,6 @@ class MeetupPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Meetup $meetup
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Meetup $meetup): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\OrangePill $orangePill
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, OrangePill $orangePill): bool
|
||||
@@ -36,7 +33,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\OrangePill $orangePill
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, OrangePill $orangePill): bool
|
||||
@@ -59,8 +53,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\OrangePill $orangePill
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, OrangePill $orangePill): bool
|
||||
@@ -71,8 +63,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\OrangePill $orangePill
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, OrangePill $orangePill): bool
|
||||
@@ -83,8 +73,6 @@ class OrangePillPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\OrangePill $orangePill
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, OrangePill $orangePill): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Participant $participant
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Participant $participant): bool
|
||||
@@ -42,7 +39,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -53,8 +49,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Participant $participant
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Participant $participant): bool
|
||||
@@ -65,8 +59,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Participant $participant
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Participant $participant): bool
|
||||
@@ -77,8 +69,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Participant $participant
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Participant $participant): bool
|
||||
@@ -89,8 +79,6 @@ class ParticipantPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Participant $participant
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Participant $participant): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Permission $permission
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Permission $permission): bool
|
||||
@@ -36,7 +33,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Permission $permission
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Permission $permission): bool
|
||||
@@ -59,8 +53,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Permission $permission
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Permission $permission): bool
|
||||
@@ -71,8 +63,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Permission $permission
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Permission $permission): bool
|
||||
@@ -83,8 +73,6 @@ class PermissionPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Permission $permission
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Permission $permission): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Podcast $podcast
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Podcast $podcast): bool
|
||||
@@ -36,7 +33,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Podcast $podcast
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Podcast $podcast): bool
|
||||
@@ -59,8 +53,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Podcast $podcast
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Podcast $podcast): bool
|
||||
@@ -71,8 +63,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Podcast $podcast
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Podcast $podcast): bool
|
||||
@@ -83,8 +73,6 @@ class PodcastPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Podcast $podcast
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Podcast $podcast): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Registration $registration): bool
|
||||
@@ -38,7 +35,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -49,8 +45,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Registration $registration): bool
|
||||
@@ -61,8 +55,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Registration $registration): bool
|
||||
@@ -73,8 +65,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Registration $registration): bool
|
||||
@@ -85,8 +75,6 @@ class RegistrationPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Registration $registration
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Registration $registration): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Role $role
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Role $role): bool
|
||||
@@ -36,7 +33,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Role $role
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Role $role): bool
|
||||
@@ -59,8 +53,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Role $role
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Role $role): bool
|
||||
@@ -71,8 +63,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Role $role
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Role $role): bool
|
||||
@@ -83,8 +73,6 @@ class RolePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \Spatie\Permission\Models\Role $role
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Role $role): bool
|
||||
|
||||
@@ -12,9 +12,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
{
|
||||
@@ -23,10 +20,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Team $team
|
||||
* @return mixed
|
||||
*/
|
||||
public function view(User $user, Team $team): bool
|
||||
{
|
||||
@@ -35,9 +28,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return mixed
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
{
|
||||
@@ -46,10 +36,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* 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): bool
|
||||
{
|
||||
@@ -59,8 +45,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* 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)
|
||||
@@ -71,8 +55,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* 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)
|
||||
@@ -83,8 +65,6 @@ class TeamPolicy extends BasePolicy
|
||||
/**
|
||||
* 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)
|
||||
@@ -94,10 +74,6 @@ class TeamPolicy extends BasePolicy
|
||||
|
||||
/**
|
||||
* 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): bool
|
||||
{
|
||||
|
||||
@@ -12,7 +12,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -23,8 +22,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\User $model
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, User $model): bool
|
||||
@@ -35,7 +32,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -46,8 +42,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\User $model
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, User $model): bool
|
||||
@@ -58,8 +52,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\User $model
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, User $model): bool
|
||||
@@ -70,8 +62,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\User $model
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, User $model): bool
|
||||
@@ -82,8 +72,6 @@ class UserPolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\User $model
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, User $model): bool
|
||||
|
||||
@@ -13,7 +13,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view any models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function viewAny(User $user): bool
|
||||
@@ -24,8 +23,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can view the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Venue $venue
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function view(User $user, Venue $venue): bool
|
||||
@@ -36,7 +33,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can create models.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function create(User $user): bool
|
||||
@@ -47,8 +43,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can update the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Venue $venue
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function update(User $user, Venue $venue): bool
|
||||
@@ -59,8 +53,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Venue $venue
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function delete(User $user, Venue $venue): bool
|
||||
@@ -71,8 +63,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can restore the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Venue $venue
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function restore(User $user, Venue $venue): bool
|
||||
@@ -83,8 +73,6 @@ class VenuePolicy extends BasePolicy
|
||||
/**
|
||||
* Determine whether the user can permanently delete the model.
|
||||
*
|
||||
* @param \App\Models\User $user
|
||||
* @param \App\Models\Venue $venue
|
||||
* @return \Illuminate\Auth\Access\Response|bool
|
||||
*/
|
||||
public function forceDelete(User $user, Venue $venue): bool
|
||||
|
||||
Reference in New Issue
Block a user