if a layer is protected checks the authorizations