From 52642dbeb63f104375f159a7a5291dd1aac127eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Sun, 8 May 2022 00:15:36 +0200 Subject: [PATCH] add plugins to member profile. --- pkg/types/member.go | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/pkg/types/member.go b/pkg/types/member.go index 116c1684..6506f7dc 100644 --- a/pkg/types/member.go +++ b/pkg/types/member.go @@ -9,16 +9,21 @@ var ( ) type MemberProfile struct { - Name string `json:"name"` - IsAdmin bool `json:"is_admin"` - CanLogin bool `json:"can_login"` - CanConnect bool `json:"can_connect"` - CanWatch bool `json:"can_watch"` - CanHost bool `json:"can_host"` - CanShareMedia bool `json:"can_share_media"` - CanAccessClipboard bool `json:"can_access_clipboard"` - SendsInactiveCursor bool `json:"sends_inactive_cursor"` - CanSeeInactiveCursors bool `json:"can_see_inactive_cursors"` + Name string `json:"name"` + + // permissions + IsAdmin bool `json:"is_admin"` + CanLogin bool `json:"can_login"` + CanConnect bool `json:"can_connect"` + CanWatch bool `json:"can_watch"` + CanHost bool `json:"can_host"` + CanShareMedia bool `json:"can_share_media"` + CanAccessClipboard bool `json:"can_access_clipboard"` + SendsInactiveCursor bool `json:"sends_inactive_cursor"` + CanSeeInactiveCursors bool `json:"can_see_inactive_cursors"` + + // plugin scope + Plugins map[string]any `json:"plugins"` } type MemberProvider interface {