Closed Roderkik closed 5 years ago
@roderik3000 Songs panel crashes when a song is trying to be shown when the author has been deleted
See here:
@lolPants Tested & fixed it on my end. can you confirm? 7e9cd4f
LGTM 👍
One last feature request and Ill import it
All actions taken on the admin panel require a reason (and its stored) and the entire action + reason is posted to the discord webhook (This is to keep transparency)
This PR satisfies the request to have an administration panel for beatsaver (#30)
Functionality
Find, Create, Edit, "Ban", Delete users
Find, Edit, "Hide", Delete songs
The hide & ban functionality use the soft deletes in laravel to keep things simple.
Changes to existing files/structures:
The
UserController
got it's login logic abstracted to a separate method (attemptLogin()
). It is used inloginSubmit
andloginAdminSubmit
.Added
barryvdh/laravel-debugbar
to the project, for debug purposes. the additions to composer.json can be removed without issue.Added a migration that adds
admin
as a field to the users table. This is done to check if the logged in user is an admin and is therefore allowed to access the admin panel.