Issue #305: "Anonymous access" shows wrong value after change, until page reload (conservancy/kallithea)

Mads Kiilerich issues-reply at bitbucket.org
Sun Feb 4 18:49:31 UTC 2018


New issue 305: "Anonymous access" shows wrong value after change, until page reload
https://bitbucket.org/conservancy/kallithea/issues/305/anonymous-access-shows-wrong-value-after

Mads Kiilerich:

The checkmark on `/_admin/permissions` will seem to go back to the previous state after submitting.

It is something with caching in `User.get_by_username` that retrieve outdated entities. `PermissionModel.update` itself doesn't use caching, but before getting this far, `auth.py` and others might have called `User.get_default_user(cache=True)`. Disabling cache in these other places make it work ... but at a cost.




More information about the kallithea-general mailing list