I'm trying to create custom fields that are restricted per role. One could use the field_permissions module to restrict access, but this only works for core fields. So I think 2 things will be nice to have:

- Be able to set field_permissions for DS fields
- Be able to define a 'parent' field in hook_ds_fields_info() that is checked for field permissions. Use case: you already have a field 'my_field' with permissions. I want to use DS to create a 'my_altered_field' which uses 'my_field' with some alterations.

Thanks!

CommentFileSizeAuthor
#3 1463838-3.patch6.62 KBswentel
#1 1463838-1.patch3.81 KBswentel

Comments

swentel’s picture

Status: Active » Needs review
StatusFileSize
new3.81 KB

First stab at this.

Patch is against restructure branch, but will probably apply against 7.x-1.x branch as well.

swentel’s picture

Version: 7.x-1.x-dev » 7.x-2.x-dev
Issue tags: +Needs tests
swentel’s picture

Status: Needs review » Fixed
StatusFileSize
new6.62 KB

Committed!

Automatically closed -- issue fixed for 2 weeks with no activity.