Allow Moderators/Admins to Grant Replay Access

- Only to themselves, at this time
- Automatically refreshes feed, no need to re-login
This commit is contained in:
ZeldaZach 2024-12-27 17:00:33 -05:00
parent 17893d9747
commit 3524231500
No known key found for this signature in database
7 changed files with 129 additions and 6 deletions

View file

@ -1,6 +1,8 @@
#ifndef TAB_ADMIN_H
#define TAB_ADMIN_H
#include "pb/commands.pb.h"
#include "pb/response.pb.h"
#include "tab.h"
#include <QDialog>
@ -32,15 +34,18 @@ private:
bool locked;
AbstractClient *client;
bool fullAdmin;
QPushButton *updateServerMessageButton, *shutdownServerButton, *reloadConfigButton;
QPushButton *updateServerMessageButton, *shutdownServerButton, *reloadConfigButton, *grantReplayAccessButton;
QGroupBox *adminGroupBox;
QPushButton *unlockButton, *lockButton;
QLineEdit *replayIdToGrant;
signals:
void adminLockChanged(bool lock);
private slots:
void actUpdateServerMessage();
void actShutdownServer();
void actReloadConfig();
void actGrantReplayAccess();
void grantReplayAccessProcessResponse(const Response &resp, const CommandContainer &, const QVariant &);
void actUnlock();
void actLock();