[lib] Update hasPermission to check KNOW_OF
Summary:
Context in this diff: https://phab.comm.dev/D9841
Depends on D9843
Test Plan: Introduced test case where hasPermission should've failed, and now does fail.
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D9844