Akismet available to all users (4 posts)

  1. Edd
    Posted 10 years ago #

    The page which allows me to delete spam comments etc is available to all registered users. This is a problem for obvious reasons. How do I make this option only available to a level 10 admin?

  2. Ming
    Posted 10 years ago #

    It looks like Askimet is using the old permission scale (1-10) instead of the new role system. I don't think you can hook into that so you'll have to change it manually.

    Change the 1 to 10 in the plugin file askimet.php

    Line 16 (Askimet config menu):
    add_submenu_page('plugins.php', __('Akismet Configuration'), __('Akismet Configuration'), 1, __FILE__, 'akismet_conf');

    Line 188 (Askimet spam count menu):
    add_management_page(__('Akismet Spam'), $count, 1, __FILE__, 'ksd_caught');

  3. Alex Mills (Viper007Bond)
    Posted 10 years ago #

    There's backwards compatiblity though with user levels. It has nothing to do with that.

    It's just that they've set the user level to 1 (i.e. pretty much anyone) as to who can access that page. Why is beyond me. My guess though is that only high leveled users can actually do anything on that page though.

  4. Edd
    Posted 10 years ago #

    Thanks a lot, changing the 1 to a 10 did the job. Thanks again :)

Topic Closed

This topic has been closed to new replies.

About this Topic