fix: del connect my asset

pull/7846/head
feng626 2022-03-14 19:20:44 +08:00 committed by Jiangjie.Bai
parent 4e8defc647
commit faf82d7cfb
2 changed files with 2 additions and 1 deletions

View File

@ -185,7 +185,6 @@ class PermedAsset(Asset):
verbose_name = _('Permed asset')
permissions = [
('view_myassets', _('Can view my assets')),
('connect_myassets', _('Can connect my assets')),
('view_userassets', _('Can view user assets')),
('view_usergroupassets', _('Can view usergroup assets')),
]

View File

@ -22,6 +22,8 @@ def clean_db_content_types():
ContentType.objects.filter(app_label=app, model=model).delete()
permissions_delete_required = [
('perms', 'permedasset', 'connect_myassets'),
('perms', 'assetpermission', 'connect_myassets'),
('perms', 'assetpermission', 'view_myassets'),
('perms', 'assetpermission', 'view_userassets'),