Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

To upload assets in profile you need access to at least one site in multisites #11474

Open
j3ll3yfi5h opened this issue Feb 20, 2025 · 2 comments

Comments

@j3ll3yfi5h
Copy link
Contributor

Bug description

Some of our users can change their profile page only in the CP.

To show the upload file button for assets fields (e.g. an avatar field), the user role needs to have at least access to one site, even if the profile or the asset container are not even using any connections (as far as I know) to the different sites.

Image

Image

Image

How to reproduce

  1. Make Multisite
  2. Add asset field to user blueprint
  3. Create Role
  4. Allow access to asset container
  5. Add / Remove access to site and check the visibility of the file upload button. (logout and login after changing the site accesses)

Logs

Environment

Environment
Application Name: Schweiz
Laravel Version: 11.41.3
PHP Version: 8.3.14
Composer Version: 2.8.4
Environment: local
Debug Mode: ENABLED
URL: localhost
Maintenance Mode: OFF
Timezone: Europe/Zurich
Locale: de

Cache
Config: NOT CACHED
Events: NOT CACHED
Routes: NOT CACHED
Views: CACHED

Drivers
Broadcasting: log
Cache: file
Database: sqlite
Logs: stack / single
Mail: smtp
Queue: sync
Session: file

Statamic
Addons: 0
Sites: 4 (Schweiz, Aargau, St. Gallen, Baselland)
Stache Watcher: Enabled
Static Caching: Disabled
Version: 5.46.1 PRO

Installation

Fresh statamic/statamic site via CLI

Additional details

No response

@duncanmcclean
Copy link
Member

Out of curiosity, what are those users doing in the Control Panel if they're not updating content?

@j3ll3yfi5h
Copy link
Contributor Author

j3ll3yfi5h commented Feb 20, 2025

Changing their avatar image (including setting focal point) and maintain their CV (including some criterias for people filter for the frontend).

@j3ll3yfi5h j3ll3yfi5h changed the title To upload assets in profile you need access to at least on site in multisites To upload assets in profile you need access to at least one site in multisites Mar 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants