silverstripe-labs/silverstripe-secureassets — pull request #10 by tractorcow (2014-05-09 00:51:52+00:00)
Title: BUG Fix default CanViewType not correctly affecting new records

Previously if a new folder was created in the root level it would have a DB default of 'Inherit' assigned to 'CanViewType', but this value isn't visible on the edit form due to it's lack of a parent. This fix maps the 'Inherit' value for root level folders to 'Anyone'.

Since the root folder 'assets' can't have access permissions assigned, it doesn't make much sense to represent subfolders as though they can inherit from this.

cc @hafriedlander

ref: ORB-33