def assert_root(self):
        root_node = self.get_root()
        if hasattr(root_node, 'as_root') and not self.get_root().as_root:
            raise ExecutionError("This privileged command is disabled: "
                                 + "you are not root.")
For commands requiring root privileges, disable command if not the root
dataset/ETHPy150Open agrover/targetcli-fb/targetcli/ui_node.py/UINode.assert_root