I attached a picture where editor role sees “Restricted access” instead of options to choose, on product edit screen. All other fields are visible, but only this field shows restricted access. Maybe this is because editor role does not have “Administer licenses” permission, but this role shouldn't have it. This role should simply choose a billing cycle for a product, but not be able to edit all commerce license settings.

CommentFileSizeAuthor
restricted-access.jpg285.14 KBmindaugasd

Comments

bojanz’s picture

Title: More permissions » cl_billing_cycle_type product field not usable without the "administer licenses" permission
Category: Feature request » Bug report
bojanz’s picture

Status: Active » Fixed

Committed a fix.

  • Commit e5bbe88 on 7.x-1.x by bojanz:
    Issue #2238119: cl_billing_cycle_type product field not usable without...

Status: Fixed » Closed (fixed)

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

ropic’s picture

Also user viewing own order cannot see cycle type.

I can display the cycle type after adding access callback on $entity_info['cl_billing_cycle'] (commerce_license_billing_entity_info function) on commerce_license_billing.module.