1969416e64
Also added the derective osPerms to check if the current user has permissions. Removed old Django views and urls for user. Created utils.views.APIView which should be used instead of the AjaxView. Fixes: #1470 Fixes: #1454
15 lines
401 B
Python
15 lines
401 B
Python
from django.utils.translation import ugettext_lazy
|
|
|
|
from openslides.utils.main_menu import MainMenuEntry
|
|
|
|
|
|
class UserMainMenuEntry(MainMenuEntry):
|
|
"""
|
|
Main menu entry for the participant app.
|
|
"""
|
|
verbose_name = ugettext_lazy('Users')
|
|
required_permission = 'users.can_see_extra_data'
|
|
default_weight = 50
|
|
pattern_name = 'core_dashboard'
|
|
icon_css_class = 'glyphicon-user'
|