Open binoclard opened 1 year ago
I've looked at this issue this afternoon and we probably need to make big some changes to how blueprints/fieldsets work under the hood to fix it properly so it's unlikely to be fixed in the short-term.
For now, as you've detailed, you can workaround the issue by adding the "Author" field directly to the blueprint or link the single fieldset field.
Bug description
I have encountered a weird thing with Roles and Author. I have made a description on this Discussion thread.
Basically, if an Author Field is imported alone as a Field, it works. But if the entire Fieldset is imported, it breaks something in the Permissions, and an User can not create or edit Entries, unless he has the complete list of Permission over a Collection.
❌
✅
✅
How to reproduce
Import it in a Collection Blueprint:
import: enseignant_responsable
Try to create a new Entry. At this point, it should display an
Undefined array key "author" error.
(Weird side-effect: Add
- 'edit other authors experimentation entries'
to the role, and it works…). Remove and go to point 6Import the Field only, It should work:
Logs
No response
Environment
Installation
Fresh statamic/statamic site via CLI
Antlers Parser
runtime (new)
Additional details
No response