Add access to set the field

Created on 5 January 2024, 6 months ago
Updated 26 January 2024, 5 months ago

We need permission to access the field on the form. We should create both global and bundle-related (permission callback) permissions.
I guess we can simply use form alter - $form['field_name']['#access'] = $user->hasPermission('global permission') || $user->hasPermission("{$bundle} permission");

πŸ“Œ Task
Status

Fixed

Version

2.1

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine AstonVictor

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024