feat: update init users
This commit is contained in:
@@ -2,7 +2,10 @@ from rest_framework_simplejwt.tokens import RefreshToken
|
||||
|
||||
from config.exceptions import AppError
|
||||
|
||||
ALLOWED_ROLE_TYPES = ('student', 'doctor', 'teacher')
|
||||
# 系统五类角色:super_admin / hospital_admin / content_admin / doctor(带教医生)/ student
|
||||
ROLE_TYPES = ('super_admin', 'hospital_admin', 'content_admin', 'doctor', 'student')
|
||||
# 移动端可自注册的角色(带教老师即 doctor,不单列 teacher)
|
||||
ALLOWED_ROLE_TYPES = ('student', 'doctor')
|
||||
|
||||
# CMS 端可登录的角色(U3 密码登录):超级管理员 / 医院管理员 / 内容管理员 / 医生(带教老师)
|
||||
CMS_ROLE_TYPES = ('super_admin', 'hospital_admin', 'content_admin', 'doctor')
|
||||
|
||||
Reference in New Issue
Block a user