Can't remove current roles in ZMI

Bug #672694 reported by Wouter Vanden Hove on 2010-11-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope PAS

Bug Description

This issue was file on the Plone bugtracker at

"Not sure if this is a plone issue or not. Plone 4.0rc1, fresh install. Go to acl_users, portal_role_manage and try to delete one of the default roles, like Contributor. Message says roles removed, and no errors in the log. Are we not allowed to delete these and it's just an error message issue?"

--> Solution: Maybe "Remove role assignment" would be a more appropriate label?

I got bitten by this as well. Changing the title of that button and adding a note in this form seems a good solution to me.

Done on Products.PluggableAuthService trunk in r120252.
Merged to the 1.6 branch in r120253.

For the record I will list some code i have now added to a client project to remove an old no longer needed role; may be handy for others:

    role = 'Moderator'

    # First the portal role manager.
    PAS = getToolByName(site, 'acl_users')
    rolemanager = PAS.portal_role_manager
    except KeyError:

    # Then the roles in the root of the site.
    data = list(site.__ac_roles__)
    except:'Old Moderator role was already removed.')
    site.__ac_roles__ = tuple(data)'Removed old Moderator role')

Changed in zope-pas:
status: New → Fix Committed
Tres Seaver (tseaver) on 2011-10-31
Changed in zope-pas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers