Restrict user access to defined account and everything that related

I have an system that has account, sale, contact, activity and project. The table sale, contact,activity and project are linked to the table account. Registed users can view, edit, add, remove in all accounts, but its needed to restrict the visisbility of the account id=500 to only show for the users id 1 and 3 and they have their predifined role saleAdmin and salePerson respectly. How can hide this account from the other users they cannot see, edit or delete it even if they have the role of superuser.

Thanks

Try rules:

http://www.yiiframework.com/doc-2.0/guide-security-authorization.html#using-rules