fix repo settings menu to not display the "regenerate key" item when user does not have admin access