Notifications: fixes and enhancements

This commit is contained in:
bergware
2023-02-18 12:20:47 +01:00
parent c2b334d3a9
commit 27cf32f845
4 changed files with 36 additions and 15 deletions
+1 -1
View File
@@ -48,7 +48,7 @@ case 'get':
break;
case 'hide':
$file = $_POST['file']??'';
if (file_exists($file) && $file==realpath($file) && pathinfo($file)['extension']=='notify') chmod($file,0000);
if (file_exists($file) && $file==realpath($file) && pathinfo($file)['extension']=='notify') chmod($file,0400);
break;
case 'archive':
$file = $_POST['file']??'';