@classmethod
    def is_admin(cls, user):
        return 'admin' in user.groups
Determine if :user: is an admin. Used by `apply_privacy` wrapper.
dataset/ETHPy150Open ramses-tech/nefertari/nefertari/authentication/models.py/AuthModelMethodsMixin.is_admin