[geeklog-modules] Returning icon for moderation.php

Tom Willett tomw at pigstye.net
Tue Dec 31 08:08:27 EST 2002


StaticPages 1.2  fixed it.
Menu 1.2         fixed it.
Menu 1.61        fixed it.
External Pages   Fixed it.
Universal Plugin Fixed it.
Visitor Stats    Fixed it.
Contacts         Fixed it.

There goes my geeklog programing for the day.

On Tue, 31 Dec 2002 12:24:19 +0100, Dirk Haun wrote
> Here's a similar issue to the one about the entry for the Admin menu (see
> yesterdays posts):
> 
> Plugins should check for the proper access rights before returning an
> entry and icon for moderation.php from plugin_cclabel_<pluginname>.
> 
> For example, for the default Moderator account, I see icons for the
> Forum, the Chatterblock, and for my very own Classifads plugin even
> though the Moderator does not have Admin access to those plugins.
> 
> Actually, the change in the plugin API that allows a plugin to return an
> empty entry from plugin_cclabel_<pluginname> was only introduced in
> Geeklog 1.3.7, so I'd like to point it out to you here:
> 
> --- snip (from docs/history) ---
> - Plugins can now return "false" (or an empty array) from  
>   plugin_cclabel_<plugin-name> so that the plugin's icon does not show up
>   in moderation.php if the user does not have the proper access rights for 
the
>   plugin. Changed the Static Pages plugin to do exactly that.
> --- snip ---
> 
> bye, Dirk
> 
> -- 
> http://www.haun-online.de/
> http://www.haun.info/
> 
> _______________________________________________
> geeklog-modules mailing list
> geeklog-modules at lists.geeklog.net
> http://lists.geeklog.net/listinfo/geeklog-modules



--
Tom Willett
tomw at pigstye.net



More information about the geeklog-modules mailing list