konova/ema/views/log.py
mpeltriaux 1fc1b533cd # Log view refactoring
* refactors log views to inherit from BaseView
2025-10-21 14:56:26 +02:00

19 lines
469 B
Python

"""
Author: Michel Peltriaux
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
Contact: ksp-servicestelle@sgdnord.rlp.de
Created on: 19.08.22
"""
from django.contrib.auth.mixins import LoginRequiredMixin
from ema.models import Ema
from konova.views.log import AbstractLogView
class EmaLogView(LoginRequiredMixin, AbstractLogView):
_MODEL_CLS = Ema
def _user_has_permission(self, user):
return user.is_ets_user()