Skip to content

[Bug] SmartScope between differents users #510

Description

@9acca9

What went wrong?

Hi.
I create two smart scope in my user and later i create a user for my mother.
She can see my smartscope
That sounds strange to me, but it's not really relevant.
My Smartscopes are "I want to read" and "Reading."

I find it odd that she can see the number of books in each one, for example:

"I want to read (11)"
"Reading (3)"

It doesn't bother me either, but it's strange since that should be her space, and therefore she shouldn't be displaying numbers that don't belong.

But anyway, if she tries to access any of those SmartScopes, she gets an HTTP 403 error.

And in the terminal it says the thing is in the relevant logs

Steps to reproduce

i dont know.

Expected vs actual behavior

Different smart scope for differents users.

Your setup

bookorbit last version
docker

Relevant logs (optional)

{"level":40,"time":1783028602047,"pid":8,"hostname":"6f7dbf553ee1","req":{"id":"req-2u4","method":"POST","url":"/api/v1/smart-scopes/1/books/query"},"res":{"statusCode":403},"responseTime":3,"msg":"[HTTP] POST /api/v1/smart-scopes/1/books/query 403 +3ms"}
{"level":40,"time":1783028610103,"pid":8,"hostname":"6f7dbf553ee1","req":{"id":"req-2u6","method":"POS T","url":"/api/v1/smart-scopes/1/books/query"},"res":{"statusCode":403},"responseTime":3,"msg":"[HTTP] POST /api/v1/smart-scopes/1/books/query 403 +3ms"}
{"level":40,"time":1783028620588,"pid":8,"hostname":"6f7dbf553ee1","req":{"id":"req-2u8","method":"POS T","url":"/api/v1/smart-scopes/2/books/query"},"res":{"statusCode":403},"responseTime":8,"msg":"[HTTP] POST /api/v1/smart-scopes/2/books/query 403 +8ms"}
{"level":40,"time":1783028620740,"pid":8,"hostname":"6f7dbf553ee1","req":{"id":"req-2u9","method":"POS T","url":"/api/v1/smart-scopes/2/books/query"},"res":{"statusCode":403},"responseTime":7,"msg":"[HTTP] POST /api/v1/smart-scopes/2/books/query 403 +7ms"}

Screenshots (optional)

No response

Before submitting

  • I've searched existing issues and this hasn't been reported yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIssue or PR is included in a released version.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions