silverstripe/sapphire — pull request #1040 by chillu (2012-12-15 19:51:59+00:00)
Title: GridField and Member permissions (#8121)

See http://open.silverstripe.org/ticket/8121

@sminnee @hafriedlander This is an API change, hence important to get peer reviewed in the next ~24h.
Doing those permission checks was simply missed in the original GridField implementation,
and I consider it a regression from ComplexTableField which had those.

Devs will most likely need to adjust ALL their models accordingly,
since its unlikely that their users will have ADMIN permissions. So quite high impact.

Any ideas how we can simplify these permission checks
so not every model definition becomes a tedious string of boilerplate?
Checking for ADMIN might be a bit strict, but devs will have come to rely on it,
and its been in there since at least 2008 - even if not really checked consistently.