Skip to content

Commit eb7b7cb

Browse files
committed
Fix condition for persist_permission()
1 parent 8535051 commit eb7b7cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/install.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@ function persist_data($manifest, $original_dir, $persist_dir) {
12241224

12251225
# check whether write permission for Users usergroup is set to global persist dir, if not then set
12261226
function persist_permission($manifest, $global) {
1227-
if ($manifest.persist -and !$global) {
1227+
if(($global -and !$manifest.persist) -or !(is_admin)) {
12281228
return
12291229
}
12301230
$path = persistdir $null $global

0 commit comments

Comments
 (0)