mirror of https://github.com/jumpserver/jumpserver
fix: 修改一些权限
parent
a8cee26874
commit
f82f7eba2b
|
@ -68,6 +68,7 @@ class BaseRelationViewSet(RelationMixin, OrgBulkModelViewSet):
|
||||||
|
|
||||||
|
|
||||||
class SystemUserAssetRelationViewSet(BaseRelationViewSet):
|
class SystemUserAssetRelationViewSet(BaseRelationViewSet):
|
||||||
|
perm_model = models.AuthBook
|
||||||
serializer_class = serializers.SystemUserAssetRelationSerializer
|
serializer_class = serializers.SystemUserAssetRelationSerializer
|
||||||
model = models.SystemUser.assets.through
|
model = models.SystemUser.assets.through
|
||||||
filterset_fields = [
|
filterset_fields = [
|
||||||
|
|
|
@ -39,7 +39,7 @@ exclude_permissions = (
|
||||||
('assets', 'assetuser', '*', '*'),
|
('assets', 'assetuser', '*', '*'),
|
||||||
('assets', 'gathereduser', 'add,delete,change', 'gathereduser'),
|
('assets', 'gathereduser', 'add,delete,change', 'gathereduser'),
|
||||||
('assets', 'accountbackupplanexecution', 'delete,change', 'accountbackupplanexecution'),
|
('assets', 'accountbackupplanexecution', 'delete,change', 'accountbackupplanexecution'),
|
||||||
('assets', 'authbook', 'add,change', 'authbook'),
|
('assets', 'authbook', 'change', 'authbook'),
|
||||||
('perms', 'userassetgrantedtreenoderelation', '*', '*'),
|
('perms', 'userassetgrantedtreenoderelation', '*', '*'),
|
||||||
('perms', 'usergrantedmappingnode', '*', '*'),
|
('perms', 'usergrantedmappingnode', '*', '*'),
|
||||||
('perms', 'permnode', '*', '*'),
|
('perms', 'permnode', '*', '*'),
|
||||||
|
|
Loading…
Reference in New Issue