If you mean, have a link (when clicked) set another link to be restricted or unrestricted, then you have to have the link add to a variable when clicked.
Then you set the link restriction on the other link to check the variable in question and show or not show depending on the value of the variable.