mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
perf: change mcp integrate
This commit is contained in:
@@ -10,6 +10,9 @@ __all__ = ['UserGroup']
|
||||
|
||||
|
||||
class UserGroup(LabeledMixin, JMSOrgBaseModel):
|
||||
"""
|
||||
User group, When a user is added to a group, they inherit its asset permissions for access control consistency.
|
||||
"""
|
||||
name = models.CharField(max_length=128, verbose_name=_('Name'))
|
||||
|
||||
def __str__(self):
|
||||
|
||||
@@ -55,6 +55,11 @@ class User(
|
||||
JSONFilterMixin,
|
||||
AbstractUser,
|
||||
):
|
||||
"""
|
||||
User model, used for authentication and authorization. User can join multiple groups.
|
||||
User can have multiple roles, and each role can have multiple permissions.
|
||||
User can connect to multiple assets, If he has the permission. Permission was defined in Asset Permission.
|
||||
"""
|
||||
id = models.UUIDField(default=uuid.uuid4, primary_key=True)
|
||||
username = models.CharField(max_length=128, unique=True, verbose_name=_("Username"))
|
||||
name = models.CharField(max_length=128, verbose_name=_("Name"))
|
||||
|
||||
Reference in New Issue
Block a user