Throw some exceptions so I can spot deprecated code.

This commit is contained in:
James Cole
2023-09-21 16:09:40 +02:00
parent 0b220f3288
commit 62bba0d33b
22 changed files with 51 additions and 42 deletions

View File

@@ -48,7 +48,7 @@ trait ValidatesAdministrationAccess
*/
protected function validateAdministration(Validator $validator, array $allowedRoles): void
{
die('deprecated method, must be done through user.');
throw new FireflyException('deprecated method, must be done through user.');
Log::debug('Now in validateAdministration()');
if (!auth()->check()) {
Log::error('User is not authenticated.');