Check for right flag in granter

Signed-off-by: Owen Smith <owen.smith@citrix.com>