• Resolved stephenfourie

    (@stephenfourie)


    I’m trying to get the download manager plugin setup but the category based permissions are not being applied.

    I created a category and assigned access permissions to the category. Started with Administrator and ‘VIP Members’ custom role.

    I then created a download, and under the package settings -> allow access, removed ‘All visitors’. Allow access is now blank/empty.

    Then I assigned the category to the download, and published.

    When I view the download page, where the download link should be there’s a red block that shows ‘Download Error’.
    If I go back and edit the download and add administrator to the allow access, then it works fine. It seems it’s not inheriting the permissions from the category as it should.

    If I assign all visitors to access on the category, then the download link shows, but clicking it downloads a text file ‘permission-denied’.

    Plugin is Version 2.9.77
    WordPress Version 4.9.8

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter stephenfourie

    (@stephenfourie)

    Follow up to this query:
    While trying to figure out how to show the category image, I’ve found that the CategoryHandler class relies on the __wpdmcategory option setting for the image and the access roles etc.

    However, when I took a look at the class.Categories.php file used to save/update the category info, I’ve found that it’s setting term_meta using __wpdm_ fields, and the code to update the __wpdmcategory is commented out.

    This seems to indicate that while the edit category screen appears to be working fine, it doesn’t update the __wpdmcategory option, so when the CategoryHandler tries to determine access for roles, there is no data in the option setting, so it blocks access.

    Are you solved? I have the same problem

    Thread Starter stephenfourie

    (@stephenfourie)

    Hi @engamemilano,
    No it is not solved. I will try later today to see what uncommenting the code does. I’m worried uncommenting it will cause unexpected side effects. I will try it on a test site and update here with my findings.

    Okay! Could you please let me know if you find a solution? Thank you very much!

    Plugin Author Shahjada

    (@codename065)

    Hi,
    The issue is fixed with v2.9.78.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Category Assigned Permissions are not working’ is closed to new replies.