diff --git a/app/views/building.py b/app/views/building.py index 15fc763c9fefb9a8a564eddb4fa32c4a16911a2e..40387b8f8c7b67acdd83732ee913204d3e5ea70b 100644 --- a/app/views/building.py +++ b/app/views/building.py @@ -2,10 +2,13 @@ from flask import request from werkzeug.exceptions import MethodNotAllowed from ..controllers.building import BuildingController -from .base import RestView +from .base import UnprotectedRestView +from app.permissions.application import app_need -class BuildingView(RestView): +class BuildingView(UnprotectedRestView): + decorators = (app_need,) + """The building view.""" def get_controller(self): """Return an instance of the building controller."""