• HannahWinispanorama_fish_eye
    3 posts
    a year ago

    Fresh install of docker misago, it was working fine with threads on homepage, but after changing forumindex to categories frontpage returns an error:
    Looks like acl issue with AnonymousUser or could it be something related to categories permissions? Or is it a bug? Or misconfiguration?

    error-misago.png

    PNG, 263.1 KB, uploaded by HannahWinis a year ago.

  • rafalppanorama_fish_eye
    a year ago

    Is this a default category? Is the error only for guest users or signed in members are experiencing it too?

    Did you change category permissions?

  • HannahWinispanorama_fish_eye
    3 posts
    a year ago

    This is only for guests/not-logged-in. Logged in admin user is fine.

    I added new categories.

    Category permissions were updated to can see / can read (half / half, not sure whats the difference).

    Any clues how to debug?

  • rafalppanorama_fish_eye
    a year ago
    check_box

    Marked as best answer by HannahWinis a year ago.

    I am suspecting that because category roles saved to database are not defining can_see_all_threads for see only role, this triggers missing key error.

    The fix should be as simple as editing each category role in Misago admin and clicking "save". This will update category role with entries for all permissions.

    I can also do a bugfix release over the weekend that will make view don't explode if category has no see all threads entry in perms map.

  • HannahWinispanorama_fish_eye
    3 posts
    a year ago

    Quick fix worked! nice one! Thanks!

    Yes, I think this is a candidate for some

    if key in dict
    

    To avoid such errors in the future.

  • rafalppanorama_fish_eye
    a year ago

    More like .get("perm") or False, but I would say the issue is its possible for permission entry to be missing in first place. I will propably fix this in a small bugfix release sometime soon. "Proper" change is moot because next feature release replaces old permissions system with new one. But that's few months away still.

Search
  • Enter search query (at least 3 characters).

Your options