Add accessflags middleware to enable Access Control.