Skip to content

Commit

Permalink
Fix condition for persist_permission()
Browse files Browse the repository at this point in the history
  • Loading branch information
r15ch13 committed Aug 27, 2018
1 parent 8535051 commit eb7b7cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -1224,7 +1224,7 @@ function persist_data($manifest, $original_dir, $persist_dir) {

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

0 comments on commit eb7b7cb

Please sign in to comment.