mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
impl. permission check
This commit is contained in:
parent
abff265761
commit
b969bc927c
|
|
@ -305,7 +305,7 @@ final class Directory extends FileAbstract implements DirectoryInterface
|
||||||
|
|
||||||
if (\is_dir($path . '/' . $file)) {
|
if (\is_dir($path . '/' . $file)) {
|
||||||
self::delete($path . '/' . $file);
|
self::delete($path . '/' . $file);
|
||||||
} else {
|
} elseif (\is_writable($path . '/' . $file)) {
|
||||||
\unlink($path . '/' . $file);
|
\unlink($path . '/' . $file);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user