diff --git a/package.json b/package.json index 20a7a8a..b16223f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "web", - "version": "0.100.6", + "version": "0.100.7-dev", "private": true, "productName": "Tactical RMM", "scripts": { diff --git a/src/components/modals/agents/BulkAction.vue b/src/components/modals/agents/BulkAction.vue index 65c4556..a83e119 100644 --- a/src/components/modals/agents/BulkAction.vue +++ b/src/components/modals/agents/BulkAction.vue @@ -135,6 +135,11 @@ :rules="[(val) => !!val || '*Required']" /> + + + {{ runAsUserToolTip }} + + state.value.osType, (newValue) => { state.value.custom_shell = null; + state.value.run_as_user = false; if (newValue === "windows") { state.value.shell = "cmd"; @@ -337,6 +345,13 @@ export default { loading.value = false; } + const supportsRunAsUser = () => { + const modes = ["script", "command"]; + return ( + state.value.osType === "windows" && modes.includes(state.value.mode) + ); + }; + // set modal title and caption const modalTitle = computed(() => { return props.mode === "command" @@ -387,6 +402,7 @@ export default { osTypeOptions, targetOptions, patchModeOptions, + runAsUserToolTip, //computed modalTitle, @@ -394,6 +410,7 @@ export default { //methods submit, cmdPlaceholder, + supportsRunAsUser, // quasar dialog plugin dialogRef, diff --git a/src/components/modals/agents/RunScript.vue b/src/components/modals/agents/RunScript.vue index 9c57d11..b9beede 100644 --- a/src/components/modals/agents/RunScript.vue +++ b/src/components/modals/agents/RunScript.vue @@ -128,6 +128,11 @@ /> + + + {{ runAsUserToolTip }} + + + + + {{ runAsUserToolTip }} + + + + Setting this value on the script model will always override any + 'Run As User' checkboxes in the UI and force this script to + always be run in the context of the logged in user. If no user + is logged in, the script will not run and an error will be + returned. Not supported on Windows Server. + +