Fixed bug that showed unnecessary  error message to non-admins