The shareholder making the loan may want to be paid back first before large payments are made to other lenders or creditors. But the business still needs to make its payments to others, especially to service providers, suppliers, and others involved in the business.
So you can say that while there is a balance owing on the shareholder loan, payments to others above a certain amount will require the shareholder's approval before they can be made.
When a company merges with another business, there can be a change in decision making power. That can make shareholder lenders nervous. So, sometimes there is a restriction that says the business cannot merge with another unless the shareholder loan is paid off first.
When shareholders are owed money for a loan they made to the company, sometimes they want to be paid back first before the company makes investments in other businesses.
This is only an option, though. Sometimes a shareholder loan is even made to fund an investment in another company. Whether you want this restriction will depend on what the loan money is meant for and what the company's business plans are.
Since the company's assets are how a business makes money, shareholder lenders sometimes want a rule that says the company cannot sell its assets while there is a balance owing on the loan.