check for master content instead of saved content id

for restrict tree