@classmethod
    def is_admin(cls, user):
        return 'admin' in user.groups
Adds a mode to the editor.
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/authentication/models.py/AuthModelMethodsMixin.is_admin--crossover with--dataset/ETHPy150Open OpenCobolIDE/OpenCobolIDE/open_cobol_ide/extlibs/pyqode/core/managers/modes.py/ModesManager.append