Changeset 13261 for main


Ignore:
Timestamp:
16 Sep 2015, 16:27:38 (9 years ago)
Author:
Henrik Bettermann
Message:

Remove global role when removing a customer.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.ikoba/trunk/src/waeup/ikoba/customers/customer.py

    r12741 r13261  
    303303    # update CSV files
    304304    update_customer_deletion_csvs(customer, del_dir)
     305
     306    # remove global role
     307    role_manager = IPrincipalRoleManager(grok.getSite())
     308    role_manager.unsetRoleForPrincipal('waeup.Customer', customer.customer_id)
    305309    return
    306310
Note: See TracChangeset for help on using the changeset viewer.