Ylianst / MeshCentral

A complete web-based remote monitoring and management web site. Once setup you can install agents and perform remote desktop session to devices on the local network or over the Internet.
https://meshcentral.com
Apache License 2.0
4.11k stars 552 forks source link

ViewOnly user cannot switch monitors #5916

Open exander77 opened 7 months ago

exander77 commented 7 months ago

On latest master (and most likely previous versions and stable version), when a user has view only, he cannot switch between screens: image These icons do nothing. But the issue is not icon interactivity, when I call directly:

deskSetDisplay(1); 
deskSetDisplay(2) ;
deskSetDisplay(65535);

It doesn't do anything, either. On my admin user, everything works.

exander77 commented 7 months ago

I debugged it down to agent-desktop and everything seems to be sent, and no error is issued in browser. So this is most likely agent issue.

si458 commented 7 months ago

i think this is an agent issue too ive debugged it some more the commands are hitting the meshcentral server and being relayed to the agent

meshrelay <Buffer 00 0c 00 06 00 03>
meshrelay <Buffer 00 0c 00 06 00 02>
meshrelay <Buffer 00 0c 00 06 00 01>

AND the agent is getting the commands too

onTunnelControlData(2): {"type":"Buffer","data":[0,12,0,6,0,3]}
onTunnelControlData(2): {"type":"Buffer","data":[0,12,0,6,0,2]}
onTunnelControlData(2): {"type":"Buffer","data":[0,12,0,6,0,1]}

it just seems to be the C lang side of things is ignoring it, so must be a viewonly permission indeed will need more investigating when i understand C a little more

MarkStephan89 commented 6 months ago

hi, I use version 1.1.22 and the ViewOnly user can change the monitors over Router an Browser.