WordPress.org

Ready to get started?Download WordPress

Forums

WP-DownloadManager
You don't have permission to access /wp-admin/admin.php on this server. (5 posts)

  1. Shepstar
    Member
    Posted 1 year ago #

    I installed this plugin on a wordpress 3.5 version and when I wan't to upload an item I get the following error:

    "You don't have permission to access /wp-admin/admin.php on this server."

    Does this mean the plugin is not compatible with 3.5 or is something going wrong. Would be great to get a quick help.
    Thanks a lot.

    http://wordpress.org/extend/plugins/wp-downloadmanager/

  2. Shonu
    Member
    Posted 1 year ago #

    Looking at source code, rights to upload are only given to admins roles...

    $role = get_role('administrator');
    	if(!$role->has_cap('manage_downloads')) {
    		$role->add_cap('manage_downloads');
    	}

    Test if you can edit wp-downloadmanager.php ikf you only have editor role (or author, or however low you want to set it.).

    //$role = get_role('administrator');
    	$role = get_role('editor');
    	if(!$role->has_cap('manage_downloads')) {
    		$role->add_cap('manage_downloads');
    	}

    I am myself surprised that this seems to be hardcoded or does it expect another plugin managing capabilities?!

  3. Shonu
    Member
    Posted 1 year ago #

  4. Shonu
    Member
    Posted 1 year ago #

    As I can work around this my code change of this "dead" piece of software, I mark it as solved (see second last comment of mine, where EDITOR becomes minimum role for upload)

  5. Shonu
    Member
    Posted 1 year ago #

    Okay, not my thread. Shepstar, can you live with the solution?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.