Role based plugin, so that the menu context can be set based on role.
I assume you mean user role?
Patch attached. This plugin allows menu visibility to the specified roles.
Sorry, wrong file. Here is the patch for 6.x
I've cleaned that issue up, and updated the patch for Drupal 7.
UPDATE: for what its worth, the code is exactly the same between both D6 and D7, so a backport should be trivial based on this one patch.
I did some minor cleanup (including fixing the js). Here's the patch I committed.
Thanks! You're in the committers list now. :-) http://drupal.org/node/948986/committers
Drupal is a registered trademark of Dries Buytaert.