silverstripe/silverstripe-cms — pull request #840 by halkyon (2013-08-27 02:35:11+00:00)
Title: AssetAdmin: PHP warning trying to add empty values into CompositeField

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.