Fix a bug in the permission evaluation code.

Signed-off-by: Tyler O'Meara <Tyler@TylerOMeara.com>