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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions