Skip to content

Align EntityInterface::setHidden() and setAccess() #19597

Description

@othercorey

Description

You can set accessibility for individual fields using setAccess() but setHidden() only allows adding or overwriting the full hidden field array.

When working with role-based permissions, unhiding specific fields is tricky because the entire array has to be managed with each change.

CakePHP Version

6.0

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions