<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.5" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Kommentare zu: Version 1.0.3 of IWG Hide Dashboard Plugin for WordPress</title>
	<link>http://www.im-web-gefunden.de/2008/04/28/version-103-of-iwg-hide-dashboard-plugin-for-wordpress/</link>
	<description>Eine kleine Auswahl dessen, was uns so tagtäglich im Web begegnet</description>
	<pubDate>Mon, 21 May 2012 12:55:17 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.5</generator>

	<item>
		<title>Von: Lene</title>
		<link>http://www.im-web-gefunden.de/2008/04/28/version-103-of-iwg-hide-dashboard-plugin-for-wordpress/#comment-14000</link>
		<pubDate>Tue, 27 May 2008 17:15:12 +0000</pubDate>
		<guid>http://www.im-web-gefunden.de/2008/04/28/version-103-of-iwg-hide-dashboard-plugin-for-wordpress/#comment-14000</guid>
					<description>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 &lt;blockquote cite=""&gt;if ( current_user_can('hide_dashboard') ) ...&lt;/blockquote&gt;

3. Changing this part of the script to &lt;blockquote cite=""&gt;
if ( current_user_can('edit_dashboard') ) ...

&lt;/blockquote&gt; 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.</description>
		<content:encoded><![CDATA[<p>I have just activated this plugin in a wp 2.5.1 environment with role manager.</p>
<p>What I want is to have the &#8220;admin&#8221; user access the dashboard and the &#8220;std&#8221; user with a custom role NOT to access the dashboard.</p>
<p>With your plugin a new capability &#8220;Edit Dashboard&#8221; was added and granted for &#8220;admin&#8221; and denied for every other user.</p>
<p>1. Testing the login, WP behaves equal to any user, and let them access the dashboard.</p>
<p>2. When I look into your Your iwg_hide_dashboard.php script, it states<br />
<blockquote cite="">if ( current_user_can(&#8217;hide_dashboard&#8217;) ) &#8230;</p></blockquote>
<p>3. Changing this part of the script to<br />
<blockquote cite="">
if ( current_user_can(&#8217;edit_dashboard&#8217;) ) &#8230;</p>
</blockquote>
<p> I notice a difference in the behaviour.</p>
<p>4. It just seems to work the other way around. So when denying the &#8220;Edit Dashboard&#8221; to the admin user, and granting it to the other user, it works as expected.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>Von: berny</title>
		<link>http://www.im-web-gefunden.de/2008/04/28/version-103-of-iwg-hide-dashboard-plugin-for-wordpress/#comment-13898</link>
		<pubDate>Wed, 07 May 2008 15:33:05 +0000</pubDate>
		<guid>http://www.im-web-gefunden.de/2008/04/28/version-103-of-iwg-hide-dashboard-plugin-for-wordpress/#comment-13898</guid>
					<description>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 &lt;a href="http://www.emergentchaos.com/archives/2005/11/friday_star_war.html"&gt;ausschlusssprinzip&lt;/a&gt; zur anwendung kommen sollte: (den design principals von saltzer and schroeder folgend)

statt das dashboard explicit mit deinem code zu verbieten,
&lt;code&gt;if ( current_user_can('hide_dashboard') ) {&lt;/code&gt;

wuerde ich eher die zusaetzliche faehigkeit der rollen erweitern, um das dashboard anzuzeigen.

&lt;code&gt;if ( !current_user_can('show_dashboard') ) {&lt;/code&gt;

du koenntest deine user auch in eine etwaige aenderung miteinzubeziehen, indem du einfach beides mit einem &lt;code&gt;or&lt;/code&gt; erlaubst...

danke &#38; lg berny</description>
		<content:encoded><![CDATA[<p>hallo thomas!</p>
<p>danke fuer dein plugin. - habs heute in zwei weblogs eingebaut. - eine kurze anregung haette ich noch:</p>
<p>da dein plugin als security-erweiterung dient, finde ich, dass das <a href="http://www.emergentchaos.com/archives/2005/11/friday_star_war.html" class="liexternal">ausschlusssprinzip</a> zur anwendung kommen sollte: (den design principals von saltzer and schroeder folgend)</p>
<p>statt das dashboard explicit mit deinem code zu verbieten,<br />
<code>if ( current_user_can('hide_dashboard') ) {</code></p>
<p>wuerde ich eher die zusaetzliche faehigkeit der rollen erweitern, um das dashboard anzuzeigen.</p>
<p><code>if ( !current_user_can('show_dashboard') ) {</code></p>
<p>du koenntest deine user auch in eine etwaige aenderung miteinzubeziehen, indem du einfach beides mit einem <code>or</code> erlaubst&#8230;</p>
<p>danke &amp; lg berny
</p>
]]></content:encoded>
				</item>
</channel>
</rss>

