Principle of Access Control with Mask Detection