add screenshot function.

This commit is contained in:
Miroslav Šedivý 2022-09-17 18:17:04 +02:00
parent 057ab2d886
commit ca6c24dee1
5 changed files with 43 additions and 2 deletions

View file

@ -298,6 +298,10 @@ func (ws *WebSocketHandler) Stats() types.Stats {
}
}
func (ws *WebSocketHandler) IsLocked(resource string) bool {
return ws.state.IsLocked(resource)
}
func (ws *WebSocketHandler) IsAdmin(password string) (bool, error) {
if password == ws.conf.AdminPassword {
return true, nil