Now I know I wasn't having this problem before, but I'm not sure what has changed since. All of a sudden though, users are not able to see their file licenses. As an admin I can see that they have file licenses, but when I log into the user account it tells me "You do not have any licensed files."

I found the permission "View own licenses" and to my surprise none of the boxes were checked. So I checked it for authenticated users. Still can't see them. I even tried giving the permission "Administer licenses", but that didn't work either.

I've been pouring over the view "Licensed files (Commerce License)" and can't figure out why administrators would be able to see the licenses, but not normal users.

Any help would be great! Thanks.


bojanz’s picture

"View own licenses" is needed for the "File" tab to show up on a user's page.
If the tab is there, then that's fine.

For the actual results to show up, you need the "view own products of any type", maybe you unchecked that?

deggertsen’s picture

"view own products of any type" is indeed checked, but it's still not working.

A funny thing is that even though "View own licenses" was not checked, users could still see the "Files" tab.

What other information might be helpful?

bojanz’s picture

I don't know, that should be it.
If you want, you can contact me privately and create me an admin login, and I could take a look myself.

bojanz’s picture

Title: Users unable to access their own file licenses » Disable SQL rewriting for the Files view
Project: Commerce License » Commerce File
Version: 7.x-1.x-dev » 7.x-2.x-dev
Category: support » task

This is some kind of a file_entity permission bug.
When I give my role the "Bypass file access control" permission, the files show up correctly.

I will commit a change so that the view disables SQL rewriting, turning off any access checks.

bojanz’s picture

deggertsen’s picture


Status: Fixed » Closed (fixed)

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