fixed issue in if clause
added example and fixed issue to get the right acl on only component