release(v1.9.0): folder tree UX overhaul, fast ACL-aware counts, and .htaccess hardening

This commit is contained in:
Ryan
2025-11-09 01:45:39 -05:00
committed by GitHub
parent 4c849b1dc3
commit abd3dad5a5
7 changed files with 596 additions and 109 deletions

View File

@@ -30,6 +30,13 @@ class FolderController
return $headers;
}
/** Stats for a folder (currently: empty/non-empty via folders/files counts). */
public static function stats(string $folder, string $user, array $perms): array
{
// Normalize inside model; this is a thin action
return FolderModel::countVisible($folder, $user, $perms);
}
private static function requireCsrf(): void
{
self::ensureSession();