fix: Issue 2334 - Parental control - Block all if no network or no data in table
Description
Send all apps in blocklist if no network or DB table is not intialized
Screenshots
Technical details
- Check if no network.
- Check if content rating table is blank.
If these two are true, block all apps.
Tests
Issues
https://gitlab.e.foundation/e/os/backlog/-/issues/2334
10 commandments of code reviews
Summary by CodeRabbit
-
New Features
- Enhanced content rating retrieval with a new method for counting content ratings.
- Improved age limit validation with streamlined logic for determining parental control status.
-
Refactor
- Refactored
AgeRatingProvider
to include new utility functions for better network, authentication, and initialization checks. - Improved readability and maintainability of various functions.
- Refactored
Edited by CodeRabbitAI