fixed rule matching with context
cleanup
Merge pull request #73 from yogthos/master

fixed access rules check with context