Score:0

Non-admins cannot see commerce entity bundle labels

cn flag

I've got a drupal commerce site with two types of user roles -- admins and merchants. Merchants the ability to administer products for their stores, and so they have the Access the products overview page permission. What's odd, though, is that they are unable to see the "type" column. Sames thing seems to be happening on the "orders" view.

From reading around, it seems like access to entity bundle labels should come from BundleEntityAccessControlHandler::checkAccess() via CommerceBundleAccessControlHandler::checkAccess(). What's odd is that those methods are hit as expected when logged in as an admin -- which is when the labels are visible -- but the breakpoints are not hit at all when logged in as a merchant. It seems like something else must be short-circuiting the accessCheck, but I don't understand what that might be. Any ideas? I even tried giving merchants all Commerce Product permissions and still nothing.

Admins: enter image description here

Merchants: enter image description here

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.