- Introduction of Partner Admin role in combination with 'Management Partner' type.
This commit is contained in:
@@ -6,6 +6,7 @@ from wtforms.validators import DataRequired, Length, Email, NumberRange, Optiona
|
||||
import pytz
|
||||
|
||||
from common.models.user import Role
|
||||
from common.services.user_service import UserService
|
||||
from config.type_defs.service_types import SERVICE_TYPES
|
||||
|
||||
|
||||
@@ -54,7 +55,7 @@ class BaseUserForm(FlaskForm):
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(BaseUserForm, self).__init__(*args, **kwargs)
|
||||
self.roles.choices = [(role.id, role.name) for role in Role.query.all()]
|
||||
self.roles.choices = UserService.get_assignable_roles()
|
||||
|
||||
|
||||
class CreateUserForm(BaseUserForm):
|
||||
|
||||
Reference in New Issue
Block a user