WordPress.org

Ready to get started?Download WordPress

Forums

StatSurfer
Minimum capability required (2 posts)

  1. Alexandre
    Member
    Posted 3 years ago #

    Hi,
    You ask for minimum capability to be 'level_8', which is not used by WordPress...
    You should ask for a specific 'manage_stats' capability and associate it to administrators by default, so this capability will be available for other users too via a plugin like Role Manager...

    So, you should replace 'level_8' with 'manage_stats' at line 150 of statsurfer.php file.

    Then, StatSurfer_CreateTable should contain:
    if ($user = get_role ('administrator')) $user->add_cap ('manage_stats');

    http://wordpress.org/extend/plugins/statsurfer/

  2. Alexandre
    Member
    Posted 3 years ago #

    Or simply activate the user lever support via the existing function iri_dropdown_caps...
    Thanks

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags