I would like a store admin role to be able to see this report, but I can't find any setting to give permissions. The user has ability to "view store reports", but virtually no reports are showing, so this might be a bug in ubercart itself. I am looking in that queue too.

Comments

mariagwyn’s picture

I am not able to set permissions on this report, making it visible to users who really do have, and can see, Store Reports. Can this be addressed?
Thanks,
Maria

cayenne’s picture

Assigned: Unassigned » cayenne

Yes, I have this working on D6 and will try to port it over. This was something in the code I started with and really did not realize it was there!

mariagwyn’s picture

I am happy to patch/test. Thanks!
Maria

mariagwyn’s picture

Cayenne,
Any updates on this?
thanks,
Maria

cayenne’s picture

I have a table replacement coded and working, and will get it in hopefully this week

tomfilepp’s picture

In the D7 version the hook for permissions and the structure of the array inside of it were both actually incorrect, hence the lack of permissions showing on the perms settings.

At line 259 it should be:

function uc_who_bought_what_permission() {
	
	$permissions = array(
	    'view own who bought what' => array(
	      'title' => t('View what users bought which products'),
	      'restrict access' => FALSE,
	    ),
	    'view all who bought what' => array(
	      'title' => t('view all who bought what'),
	      'restrict access' => FALSE,
	    ));
	return $permissions;
} // function uc_who_bought_what_perm
cayenne’s picture

Status: Active » Needs review

Thanks tomfilepp for the code. It seems to work nicely, at least on my test site. Let's see how it goes elsewhere!

cayenne’s picture

Issue summary: View changes
Status: Needs review » Closed (fixed)