**SECURITY** added validation of attribute restriction in where
SECURITY added validation of attribute restriction in case restricted attribute is used inside where
SECURITY added validation of attribute restriction in case restricted attribute is used inside where