Fixed a TypeError issue when running the 'update_permissions' command
Merge pull request #473 from ojh/master

Fixed a TypeError issue when running the 'update_permissions' command