Problem: authorization issues when calling the “lock” action
As explained in the first step of the “getting locked” session, before calling the lock action you need to add the email@example.com to the owner authorizations of the account you want to lock.
Please make sure that the firstname.lastname@example.org permission is added to your contract’s owner authorizations.
Problem: authorization issues when calling the “unlock” action
Please note that you cannot call the unlock action using the locked account permission. You do not have any authorization for that account while locked.
You can call the unlock action from any other account for which you control the authorization permissions.