src/Policies/UserNotificationPolicy.php
public function update(User $user, DatabaseNotification $notification)
    {
        if ($user->hasPermissionTo(Permission::NOTIFICATION_UPDATE_ALL)) {
            return true;
        }

        return $user->id === $notification->notifiable_id;
    }
public function update(User $user, DatabaseNotification $notification)
    {
        if ($user->hasPermissionTo(Permission::NOTIFICATION_UPDATE_ALL)) {
            return true;
        }

        return $user->id === $notification->notifiable_id;
    }
Determine whether the user can update the user.

@param  \Unite\UnisysApi\Models\User  $user
@param  \Illuminate\Notifications\DatabaseNotification  $notification
@return mixed