TFNS/CTFNote

Frontend not synced with backend Discord status

Closed this issue · 1 comments

Currently the backend doesn't know if the Discord integration is enabled or disabled.

Proposed fix:

  • add "discord_integration_enabled" to the "ctfnote.settings" table, readable by user_guest.
  • write to this field every time the database (and bot) are started, write a false or true respectively.
  • read this just like the style configuration is read client sided
    • Display warning its disabled.
    • Or, hide element outright.
JJ-8 commented

Fixed in #296