Fixed a bug regarding user privileges.