Privileged User Instance Access and Container Path Cleanup #
Changelog #
Backend #
- Admins and owners can now read every page and, where the role hierarchy allows, manage its files and settings; pages owned by an equal or higher role remain read-only.
- Centralized page permission checks into one shared capability calculation, so viewing, updating, deleting, downloading and transferring pages all follow the same rules.
- Added a page transfer endpoint with checks for banned or unapproved targets, role hierarchy, and subdomain limits, plus notifications to displaced owners.
- Page details now report the page's owners and whether the viewer can write files or manage settings.
- Admin and owner accounts are now always treated as approved and vouched, including at creation, in user listings and sort order, and in unvouched storage accounting; the bootstrap owner is also marked email-verified and given the maximum subdomain limit.
Admin Panel & Dashboard #
- Site settings gained owner display and a transfer control, and the file manager adapts to read-only versus writable access.
- The users table was simplified, and approval and vouch states now reflect privileged accounts correctly.
- Notification and status badge components were updated to match the new states.
Infrastructure & Deployment #
- Moved container paths for hosted pages, custom assets and configuration to top-level locations instead of living under the application directory.
- Relative page storage paths now resolve against the repository root, removing the special-cased container fallback.
Testing #
- Added backend tests for page permissions, transfers, file access, user creation and storage path resolution.
- Added and updated frontend tests for the users table, site settings, file manager, notifications, status badges and page API client.