I mean, the administrator has all permissions, including the permission to download without actually buying the resource. However, when he/she clicks on download, it gives the error as shown above. The admin has to go to the dashboard and give himself the license to the resource in order to download it.
This should not be the case as the admin should be able to download without having to give himself a license.
@MtoR you don't check this permission everywhere ! This feature is just not implemented in ResourceVersion...
And probably a bug if the owner of a resource try to download this own resource.
To fix it @ParallelMC , in the entity ResourceVersion, in method canDownload():
/* If resource owner, download allowed */
if ($resource->user_id == \XF::visitor()->user_id)
$visitor = \XF::visitor();
/* If user is author or user can download without buying download is authorized */
|| ($visitor->user_id && $resource->user_id == $visitor->user_id))