You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When editing/creating pages as a registered user in a realms-wiki with ALLOW_ANON set to false, publishing will always fail with "Anonymous posting not allowed".
In realms/modules/wiki/views.py, line 39 and 113 you do:
ifnotcurrent_app.config.get('ALLOW_ANON') andcurrent_user.is_anonymous:
returndict(error=True, message="Anonymous posting not allowed"), 403
current_user.is_anonymous is a method, not a property, this statement will always be True if ALLOW_ANON is False. adding parentheses helps.
ifnotcurrent_app.config.get('ALLOW_ANON') andcurrent_user.is_anonymous():
returndict(error=True, message="Anonymous posting not allowed"), 403
The text was updated successfully, but these errors were encountered:
Hey!
When editing/creating pages as a registered user in a realms-wiki with ALLOW_ANON set to false, publishing will always fail with "Anonymous posting not allowed".
In realms/modules/wiki/views.py, line 39 and 113 you do:
current_user.is_anonymous is a method, not a property, this statement will always be True if ALLOW_ANON is False. adding parentheses helps.
The text was updated successfully, but these errors were encountered: