Skip to content

Commit c45fb4c

Browse files
committed
OpenConceptLab/ocl_issues#2298 | removed cross encoder auth group
1 parent d8c7181 commit c45fb4c

File tree

2 files changed

+1
-7
lines changed

2 files changed

+1
-7
lines changed

core/users/constants.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
MAPPER_AI_ASSISTANT_GROUP = 'mapper_ai_assistant'
1313
MAPPER_WAITLIST_GROUP = 'mapper-waitlist'
1414
MAPPER_APPROVED_GROUP = 'mapper-approved'
15-
MAPPER_CROSS_ENCODER_GROUP = 'mapper_cross_encoder'
1615
EARLY_ACCESS_NGO_GROUP = 'early_access_ngo'
1716
GUEST_GROUP = 'guest_user'
1817
STANDARD_GROUP = 'standard_user'
@@ -35,7 +34,6 @@
3534
PREMIUM_GROUP,
3635
STAFF_GROUP,
3736
SUPERADMIN_GROUP,
38-
MAPPER_CROSS_ENCODER_GROUP,
3937
GRAPHQL_API_GROUP
4038
]
4139
INVALID_AUTH_GROUP_NAME = 'Invalid auth group.'

core/users/models.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from core.common.tasks import send_user_verification_email, send_user_reset_password_email
1515
from core.common.utils import web_url
1616
from core.users.constants import AUTH_GROUPS, MAPPER_WAITLIST_GROUP, STAFF_GROUP, SUPERADMIN_GROUP, GUEST_GROUP, \
17-
MAPPER_APPROVED_GROUP, MAPPER_CROSS_ENCODER_GROUP
17+
MAPPER_APPROVED_GROUP
1818
from .constants import USER_OBJECT_TYPE
1919
from ..common.checksums import ChecksumModel
2020

@@ -231,10 +231,6 @@ def is_mapper_waitlisted(self):
231231
def is_mapper_approved(self):
232232
return self.has_auth_group(MAPPER_APPROVED_GROUP)
233233

234-
@property
235-
def is_mapper_cross_encoder_group(self):
236-
return self.has_auth_group(MAPPER_CROSS_ENCODER_GROUP)
237-
238234
@property
239235
def is_guest_group(self):
240236
return self.has_auth_group(GUEST_GROUP)

0 commit comments

Comments
 (0)