Fix PHP errors.
Merge branch 'attribute-permissions'