mirror of https://github.com/jumpserver/jumpserver
fix: 修复操作应用/应用授权/acl等未记录日志的问题2
parent
4a4d5f3243
commit
65ad63272c
|
@ -33,6 +33,9 @@ class LoginACL(BaseACL):
|
|||
class Meta:
|
||||
ordering = ('priority', '-date_updated', 'name')
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def action_reject(self):
|
||||
return self.action == self.ActionChoices.reject
|
||||
|
|
|
@ -38,6 +38,9 @@ class LoginAssetACL(BaseACL, OrgModelMixin):
|
|||
unique_together = ('name', 'org_id')
|
||||
ordering = ('priority', '-date_updated', 'name')
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
||||
@classmethod
|
||||
def filter(cls, user, asset, system_user, action):
|
||||
queryset = cls.objects.filter(action=action)
|
||||
|
|
Loading…
Reference in New Issue