pull/970/merge
Ismael 2023-10-30 19:18:32 -06:00 committed by GitHub
commit 339eac2e6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ func DirWritable(path string) (bool, error) {
return false, errors.New("unable to get stat")
}
if uint32(os.Geteuid()) != stat.Uid {
if uint32(os.Getgid()) != stat.Gid && uint32(os.Geteuid()) != stat.Uid {
return false, errors.New("user doesn't have permission to write to this directory")
}
return true, nil