Support Moderator/Admin force activating users (#5353)

This commit is contained in:
Zach H 2024-12-28 00:01:31 -05:00 committed by GitHub
parent 37b78a9a4c
commit 7a5704beaa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 98 additions and 3 deletions

View file

@ -34,10 +34,11 @@ private:
bool locked;
AbstractClient *client;
bool fullAdmin;
QPushButton *updateServerMessageButton, *shutdownServerButton, *reloadConfigButton, *grantReplayAccessButton;
QPushButton *updateServerMessageButton, *shutdownServerButton, *reloadConfigButton, *grantReplayAccessButton,
*activateUserButton;
QGroupBox *adminGroupBox;
QPushButton *unlockButton, *lockButton;
QLineEdit *replayIdToGrant;
QLineEdit *replayIdToGrant, *userToActivate;
signals:
void adminLockChanged(bool lock);
private slots:
@ -45,7 +46,9 @@ private slots:
void actShutdownServer();
void actReloadConfig();
void actGrantReplayAccess();
void actForceActivateUser();
void grantReplayAccessProcessResponse(const Response &resp, const CommandContainer &, const QVariant &);
void activateUserProcessResponse(const Response &response, const CommandContainer &, const QVariant &);
void actUnlock();
void actLock();