Firefly III: a personal finances manager
PHP accountingbudgetbudgetingbudgetscash-flowcashflowcredit-carddockerexpensesfinancefinancesfinanciallinuxmoneypaycheckpersonal-financephpphp7
Remove unused classes
James Cole681619f73239
diff --git a/app/Policies/.gitkeep b/app/Policies/.gitkeepdeleted file mode 100644index e69de29bb2..0000000000diff --git a/app/Policies/AccountPolicy.php b/app/Policies/AccountPolicy.phpdeleted file mode 100644index bd08035f36..0000000000--- a/app/Policies/AccountPolicy.php+++ /dev/null@@ -1,68 +0,0 @@-<?php--/*- * AccountPolicy.php- * Copyright (c) 2024 [email protected].- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see https://www.gnu.org/licenses/.- */--declare(strict_types=1);--namespace FireflyIII\Policies;--use FireflyIII\Models\Account;-use FireflyIII\User;-use Illuminate\Support\Facades\Log;--class AccountPolicy-{- public function create(): bool- {- return auth()->check();- }-- /**- * TODO needs better authentication, also for group.- */- public function view(User $user, Account $account): bool- {- return auth()->check() && $user->id === $account->user_id;- }-- public function viewAccountBalances(User $user, Account $account): bool- {- return $this->view($user, $account);- }-- /**- * Everybody can do this, but selection should limit to user.- */- public function viewAny(): bool- {- Log::debug(__METHOD__);-- return auth()->check();- }-- /**- * Everybody can do this, but selection should limit to user.- */- public function viewUser(User $user, Account $account): bool- {- return $this->view($user, $account);- }-}diff --git a/app/Policies/BalancePolicy.php b/app/Policies/BalancePolicy.phpdeleted file mode 100644index 665536a906..0000000000--- a/app/Policies/BalancePolicy.php+++ /dev/null@@ -1,47 +0,0 @@-<?php--/*- * BalancePolicy.php- * Copyright (c) 2024 [email protected].- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see https://www.gnu.org/licenses/.- */--declare(strict_types=1);--namespace FireflyIII\Policies;--use FireflyIII\Models\Account;-use FireflyIII\User;--class BalancePolicy-{- /**- * TODO needs better authentication.- */- public function view(User $user, Account $account): bool- {- return auth()->check() && $user->id === $account->user_id;- }-- /**- * Everybody can do this, but selection should limit to user.- */- public function viewAny(): bool- {- return auth()->check();- }-}diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.phpdeleted file mode 100644index 872ce31fc3..0000000000--- a/app/Policies/UserPolicy.php+++ /dev/null@@ -1,59 +0,0 @@-<?php--/*- * UserPolicy.php- * Copyright (c) 2024 [email protected].- *- * This file is part of Firefly III (https://github.com/firefly-iii).- *- * This program is free software: you can redistribute it and/or modify- * it under the terms of the GNU Affero General Public License as- * published by the Free Software Foundation, either version 3 of the- * License, or (at your option) any later version.- *- * This program is distributed in the hope that it will be useful,- * but WITHOUT ANY WARRANTY; without even the implied warranty of- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the- * GNU Affero General Public License for more details.- *- * You should have received a copy of the GNU Affero General Public License- * along with this program. If not, see https://www.gnu.org/licenses/.- */--declare(strict_types=1);--namespace FireflyIII\Policies;--use FireflyIII\User;--class UserPolicy-{- /**- * TODO needs better authentication.- */- public function view(User $user, User $user1): bool- {- return true;-- // return auth()->check() && $user->id === $account->user_id;- }-- public function viewAccounts(User $user): bool- {- return true;-- // return auth()->check();- }-- /**- * Everybody can do this, but selection should limit to user.- *- * @return true- */- public function viewAny(): bool- {- return true;-- // return auth()->check();- }-}