Skip to content

feature: who can upload demos is a role in demo settings, every signed-in user by default - #852

Merged
lukepolo merged 1 commit into
mainfrom
feature/demo-upload-role
Oct 29, 2026
Merged

lukepolo merged 1 commit into
mainfrom
feature/demo-upload-role

Conversation

@lukepolo

Copy link
Copy Markdown
Contributor

External .dem uploads were administrator-only; demo settings now decides who can upload, defaulting to every signed-in user (5stackgg/5stack-panel#688, item 1).

  • New setting public.demo_upload_role, read alongside the existing external-imports switch
  • assertCanUpload compares the caller's role against it instead of requiring administrator; the imports switch still applies
  • Unset means user; a stored value that isn't a role keeps uploads to administrators
  • Pairs with 5stackgg/web feature/demo-upload-role (the settings field and the profile upload)

…d-in user by default

External .dem uploads were administrator-only. public.demo_upload_role decides it now; it defaults to user, and a value that isn't a role keeps uploads to administrators.
@lukepolo
lukepolo merged commit 62835e1 into main Oct 29, 2026
7 checks passed
@lukepolo
lukepolo deleted the feature/demo-upload-role branch October 29, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant