Extend Redoubt::getPermissions to get resources by object type or permission; see #1