Error changing user role 7.1.3 and 7.1.4

After upgrading to seafile 7.1.x i can only switch between guest and default role.
My custom roles are visible but i can’t use them.
image
I get an error
image

My config is:

# Rollendefinition
ENABLED_ROLE_PERMISSIONS = {
'default': {
    'can_add_repo': True,
    'can_add_group': True,
    'can_view_org': True,
    'can_use_global_address_book': True,
    'can_generate_share_link': True,
    'can_generate_upload_link': True,
    'can_invite_guest': False,
    'can_connect_with_android_clients': False,
    'can_connect_with_ios_clients': False,
    'can_connect_with_desktop_clients': False,
    'role_quota': '',
    'can_publish_repo': True,
},
'guest': {
    'can_add_repo': False,
    'can_add_group': False,
    'can_view_org': False,
    'can_use_global_address_book': False,
    'can_generate_share_link': False,
    'can_generate_upload_link': False,
    'can_invite_guest': False,
    'can_connect_with_android_clients': False,
    'can_connect_with_ios_clients': False,
    'can_connect_with_desktop_clients': False,
    'role_quota': '',
    'can_publish_repo': False,
},
'LRA_noclient': {
    'can_add_repo': True,
    'can_add_group': True,
    'can_view_org': True,
    'can_use_global_address_book': True,
    'can_generate_share_link': True,
    'can_generate_upload_link': True,
    'can_invite_guest': False,
    'can_connect_with_android_clients': False,
    'can_connect_with_ios_clients': False,
    'can_connect_with_desktop_clients': False,
    'role_quota': '',
    'can_add_public_repo': True,
    'can_publish_repo': True,
},
'LRA_withclient': {
    'can_add_repo': True,
    'can_add_group': True,
    'can_view_org': True,
    'can_use_global_address_book': True,
    'can_generate_share_link': True,
    'can_generate_upload_link': True,
    'can_invite_guest': False,
    'can_connect_with_android_clients': True,
    'can_connect_with_ios_clients': True,
    'can_connect_with_desktop_clients': True,
    'role_quota': '',
    'can_add_public_repo': True,
    'can_publish_repo': True,
},
'LRA_onlyinternal': {
    'can_add_repo': True,
    'can_add_group': False,
    'can_view_org': True,
    'can_use_global_address_book': True,
    'can_generate_share_link': False,
    'can_generate_upload_link': False,
    'can_invite_guest': False,
    'can_connect_with_android_clients': True,
    'can_connect_with_ios_clients': True,
    'can_connect_with_desktop_clients': True,
    'role_quota': '',
    'can_add_public_repo': False,
    'can_publish_repo': False,
},
'LRA_special': {
    'can_add_repo': True,
    'can_add_group': False,
    'can_view_org': True,
    'can_use_global_address_book': True,
    'can_generate_share_link': False,
    'can_generate_upload_link': False,
    'can_invite_guest': False,
    'can_connect_with_android_clients': True,
    'can_connect_with_ios_clients': True,
    'can_connect_with_desktop_clients': True,
    'role_quota': '',
    'can_add_public_repo': False,
    'can_publish_repo': False,
}
}