diff --git a/app/Policies/Wiki/SongPolicy.php b/app/Policies/Wiki/SongPolicy.php index 7df7568a9..0bc449d61 100644 --- a/app/Policies/Wiki/SongPolicy.php +++ b/app/Policies/Wiki/SongPolicy.php @@ -147,4 +147,37 @@ public function detachArtist(User $user): bool { return $user->can(CrudPermission::UPDATE->format(Song::class)); } + + /** + * Determine whether the user can attach any resource to the song. + * + * @param User $user + * @return bool + */ + public function attachAnyExternalResource(User $user): bool + { + return $user->can(CrudPermission::UPDATE->format(Song::class)); + } + + /** + * Determine whether the user can attach a resource to the song. + * + * @param User $user + * @return bool + */ + public function attachExternalResource(User $user): bool + { + return $user->can(CrudPermission::UPDATE->format(Song::class)); + } + + /** + * Determine whether the user can detach a resource from the song. + * + * @param User $user + * @return bool + */ + public function detachExternalResource(User $user): bool + { + return $user->can(CrudPermission::UPDATE->format(Song::class)); + } }