Version 1.0.3 of IWG Hide Dashboard Plugin for WordPress

28.04.2008 10:26 Uhr | Kommentare: 2 | Kommentar hinterlassen
Einsortiert in Software

Wordpress LogoTodays morning I released a new version of my “IWG Hide Dashboard” Plugin for WordPress.

The new version is tested and running on version 2.5.1 of WordPress too.

I’ve made some changes to handle better the header already sent ... problem, reported only by some users. Now this problem should be fixed completely. ( I hope so ;) )

2 Kommentare zu “Version 1.0.3 of IWG Hide Dashboard Plugin for WordPress”

  • #1

    hallo thomas!

    danke fuer dein plugin. - habs heute in zwei weblogs eingebaut. - eine kurze anregung haette ich noch:

    da dein plugin als security-erweiterung dient, finde ich, dass das ausschlusssprinzip zur anwendung kommen sollte: (den design principals von saltzer and schroeder folgend)

    statt das dashboard explicit mit deinem code zu verbieten,
    if ( current_user_can('hide_dashboard') ) {

    wuerde ich eher die zusaetzliche faehigkeit der rollen erweitern, um das dashboard anzuzeigen.

    if ( !current_user_can('show_dashboard') ) {

    du koenntest deine user auch in eine etwaige aenderung miteinzubeziehen, indem du einfach beides mit einem or erlaubst…

    danke & lg berny

  • #2
    Gravatar Lene meinte

    I have just activated this plugin in a wp 2.5.1 environment with role manager.

    What I want is to have the “admin” user access the dashboard and the “std” user with a custom role NOT to access the dashboard.

    With your plugin a new capability “Edit Dashboard” was added and granted for “admin” and denied for every other user.

    1. Testing the login, WP behaves equal to any user, and let them access the dashboard.

    2. When I look into your Your iwg_hide_dashboard.php script, it states

    if ( current_user_can(’hide_dashboard’) ) …

    3. Changing this part of the script to

    if ( current_user_can(’edit_dashboard’) ) …

    I notice a difference in the behaviour.

    4. It just seems to work the other way around. So when denying the “Edit Dashboard” to the admin user, and granting it to the other user, it works as expected.

Hinterlasse einen Kommentar

Bitte beachten: Mit der Abgabe eines Kommentares oder dem Senden eines Trackbacks erklärst Du Dich mit den Kommentar- und Trackbackrichtlinien einverstanden!

XHTML: Diese Tags sind erlaubt: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Du kannst Deinen Kommentar nach dem Abspeichern noch 30 Minuten bearbeiten.

Kurznavigation

Featured Story

WordPress-Plugins

Tags

Kategorien

Empfehlungen

Hilfen und mehr ...

Kommerzielle Angebote

Anderes