Age Rating restrictions work incorrectly #624
IvanGavrilenko
started this conversation in
Issue Triage
Replies: 2 comments 2 replies
-
|
still in "nightly-20260420-21b32fc6" |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
If the issue "needs-reproduction" I can make a seperate small library of 3 or 4 books, make age restrictions and share credentials so team could see the issue... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What Went Wrong?
I tryed to make a account for the child with restrictions based on Age restriction field. But the condition "allow only age 13+" did not work at all - all books were shown - look at screenshot 1 - the smart shelves show just the same value (smart shelves have the single condition - age rating is empty for the "Not rated" shelve or equal to the value for all others). The condition "restrict age 16+" - worked partially - the ages 16+ and 18+ were filtered out but books without filled Age restriction left visible (screen 2).
This situation is not normal as the logic - to restrict an account from unwanted access (i.e. the restricted account is a child) and after book import from bookdrop folder the file has empty age restrictions and thus I may forget to make the age restriction to the file, or in timeframe from downloading to the age filling the unwanted access is granted.
How Can We Reproduce This?
add several books to the library and assign different age rating to the books, leaving several books with age rating empty
create a user and try to restrict it with books i.e. 13+
try to implement the condition as "allow only 13+"
try to implement the condition as "restrict with 16+"
What Should Have Happened?
From my logic this managed account should see books with age rating 0 (aka For all ages), 6+, 10+, 13+ and nothing else.
condition as "allow only 13+" - shows all library
condition as "restrict with 16+" - shows 0 (aka For all ages), 6+, 10+, 13+ AND books with empty age rating
Screenshots or Error Messages (Optional)
Any Ideas on How to Fix This? (Optional)
As I suppose the book feed is done via SQL, so check if SQL has condition like
select * from ... where age_rating is below &customer_selected_age_rating and age_rating is not null
Your Setup
Grimmory v2.3.0
Docker
Storage local
Before Submitting
Beta Was this translation helpful? Give feedback.
All reactions