mirror of
https://github.com/pixelfed/pixelfed.git
synced 2024-11-21 22:11:26 +00:00
Update ParentalControlsController, prevent children from adding accounts
This commit is contained in:
parent
db1b466792
commit
c91f1c595a
1 changed files with 1 additions and 0 deletions
|
@ -19,6 +19,7 @@ class ParentalControlsController extends Controller
|
|||
{
|
||||
if($authCheck) {
|
||||
abort_unless($request->user(), 404);
|
||||
abort_unless($request->user()->has_roles === 0, 404);
|
||||
}
|
||||
abort_unless(config('instance.parental_controls.enabled'), 404);
|
||||
if(config_cache('pixelfed.open_registration') == false) {
|
||||
|
|
Loading…
Reference in a new issue