mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 06:05:56 +00:00
27749fdb7a
If the logged in user doesn't have permission to add a Folder record, AssetAdmin::getEditForm() tries to enter an empty value into the children of a ComposteField. This breaks SSViewer with a call_user_func invalid args PHP warning. Only include these buttons when they're available to the user.