fixed access rules check with context