Added a function for clearing admin/user rights