Skip to content

Conversation

oleg-andreyev
Copy link
Contributor

@oleg-andreyev oleg-andreyev commented Jul 15, 2025

This PR is closely related to #7031 a feature that we're doing internally and may be useful for community (when we'll finish, we'll create PR)

  • Added isAccessible property to FieldDto with default value true
  • Added markAsInaccessible() method to mark fields as inaccessible
  • Added isAccessible() method to check field accessibility
  • Updated AbstractCrudController to pass fields to index template
  • Updated index template to filter fields by accessibility and show lock icon for inaccessible fields

oleg-andreyev and others added 2 commits July 15, 2025 10:09
- Added isAccessible property to FieldDto with default value true
- Added markAsInaccessible() method to mark fields as inaccessible
- Added isAccessible() method to check field accessibility
- Updated AbstractCrudController to pass fields to index template
- Updated index template to filter fields by accessibility and show lock icon for inaccessible fields

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@oleg-andreyev oleg-andreyev force-pushed the field-dto-isAccessible branch from 0f316cc to 2464af1 Compare July 17, 2025 17:58
Signed-off-by: Oleg Andreyev <[email protected]>
@Seb33300
Copy link
Contributor

Hi @oleg-andreyev,
What is the purpose to mark a field as inaccessible?
Can you share an example of how to use and when it's useful?

@oleg-andreyev
Copy link
Contributor Author

@Seb33300 we've added based ACL on top of EA, so we can control if user can see it:

  • Entity
  • Entity.id
  • Entity:field
  • Entity:field.id

If entity is blocked, entire CRUD is blocked
if entity.id is blocked, only one record is blocked
if entity:field is blocked only one field from CRUD is blocked, thus no needs to show it in header.
if entity:field.id is blocked only one field for one entity is blocked, show only "lock" icon.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants