1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00

fix uploaded demo permissions

This commit is contained in:
Robin Appelman 2017-04-11 22:47:45 +02:00
commit 183b994f72

View file

@ -19,6 +19,7 @@ class DemoStore {
mkdir(dirname($target), 0777, true); mkdir(dirname($target), 0777, true);
} }
rename($sourcePath, $target); rename($sourcePath, $target);
chmod($target, 0755);
return new StoredDemo($this->getUrl($name), 'static', $target); return new StoredDemo($this->getUrl($name), 'static', $target);
} }